Skip to content
Snippets Groups Projects
Verified Commit 68e3ed37 authored by Volkor Barbarian Warrior's avatar Volkor Barbarian Warrior
Browse files

fix: log error when invalid template is rendered

parent fa277d7b
No related branches found
No related tags found
No related merge requests found
......@@ -131,7 +131,7 @@ pub async fn render_template(
};
// Tell the engine to render the template assigned above
let rendered = tpls.get(template_filename).unwrap().render(&template);
let rendered = tpls.get(template_filename).expect("Couldn't find the template filename").render(&template);
// Set the status code and render the completed page
res.set_status_code(status_code);
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment