diff options
author | vallentin <mail@vallentin.dev> | 2021-04-29 12:58:43 +0200 |
---|---|---|
committer | Christian Vallentin <vallentinsource@gmail.com> | 2021-04-29 13:08:49 +0200 |
commit | 92df4d1fe49e8fde5ca13f13b8236102bc16b969 (patch) | |
tree | a7ab2ee111340c681f80966dc7fc8706eabb5bc6 | |
parent | c7b87bae4f2d4df974ff400dd447898e9deca6ff (diff) | |
download | askama-92df4d1fe49e8fde5ca13f13b8236102bc16b969.tar.gz askama-92df4d1fe49e8fde5ca13f13b8236102bc16b969.tar.bz2 askama-92df4d1fe49e8fde5ca13f13b8236102bc16b969.zip |
Fixed not found in scope error
-rw-r--r-- | askama_shared/src/generator.rs | 2 |
1 files changed, 1 insertions, 1 deletions
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, ) |