From 92df4d1fe49e8fde5ca13f13b8236102bc16b969 Mon Sep 17 00:00:00 2001 From: vallentin Date: Thu, 29 Apr 2021 12:58:43 +0200 Subject: Fixed not found in scope error --- askama_shared/src/generator.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'askama_shared') diff --git a/askama_shared/src/generator.rs b/askama_shared/src/generator.rs index 50ea67a..20f2c08 100644 --- a/askama_shared/src/generator.rs +++ b/askama_shared/src/generator.rs @@ -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, ) -- cgit