Fixed not found in scope error

This commit is contained in:
vallentin 2021-04-29 12:58:43 +02:00 committed by Christian Vallentin
parent c7b87bae4f
commit 92df4d1fe4

View File

@ -698,7 +698,7 @@ impl<'a, S: std::hash::BuildHasher> Generator<'a, S> {
})?;
(
mctx.macros.get(name).ok_or_else(|| {
CompileError::String(format!("macro '{}' not found in scope '{}'", s, name))
CompileError::String(format!("macro '{}' not found in scope '{}'", name, s))
})?,
mctx,
)