Skip to content

Commit

Permalink
Fix error function
Browse files Browse the repository at this point in the history
  • Loading branch information
navrocky committed Jan 23, 2025
1 parent d12b0b7 commit 40dd6ff
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/inja_renderer.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -30,6 +30,6 @@ string renderWithInja(const string& tmpl, char** envp)
auto envs = getAllEnvs<inja::json>(envp);
inja::Environment env;
env.add_callback("split", bind(split, _1));
env.add_callback("error", bind(split, _1));
env.add_callback("error", bind(error, _1));
return env.render(tmpl, envs);
}

0 comments on commit 40dd6ff

Please sign in to comment.