From 40dd6fff3ce2e89b6103629908dfb1f9ffc950cb Mon Sep 17 00:00:00 2001 From: Vladislav Navrocky Date: Thu, 23 Jan 2025 14:54:11 +0300 Subject: [PATCH] Fix error function --- src/inja_renderer.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/inja_renderer.cpp b/src/inja_renderer.cpp index e9e46f1..5b0239c 100644 --- a/src/inja_renderer.cpp +++ b/src/inja_renderer.cpp @@ -30,6 +30,6 @@ string renderWithInja(const string& tmpl, char** envp) auto envs = getAllEnvs(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); }