From e03df3d9690e228a7a076107d64057c28d63cdfa Mon Sep 17 00:00:00 2001 From: Dirkjan Ochtman Date: Mon, 9 Apr 2018 10:41:06 +0200 Subject: Improve error message when template is not found --- askama_shared/src/path.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'askama_shared/src') diff --git a/askama_shared/src/path.rs b/askama_shared/src/path.rs index f7a3762..c84575f 100644 --- a/askama_shared/src/path.rs +++ b/askama_shared/src/path.rs @@ -38,7 +38,7 @@ pub fn find_template_from_path(path: &str, start_at: Option<&Path>) -> PathBuf { if fs_abs_path.exists() { path.to_owned() } else { - panic!(format!("template '{:?}' not found", path.to_str())); + panic!(format!("template {:?} not found at {:?}", path.to_str().unwrap(), fs_abs_path)); } } -- cgit