diff options
author | Dirkjan Ochtman <dirkjan@ochtman.nl> | 2018-04-09 10:41:06 +0200 |
---|---|---|
committer | Dirkjan Ochtman <dirkjan@ochtman.nl> | 2018-04-09 10:41:06 +0200 |
commit | e03df3d9690e228a7a076107d64057c28d63cdfa (patch) | |
tree | 0f2b4fa8a9ce8013ac9ce61f5865059c5d030a5f /askama_shared/src | |
parent | 36cbfd4bad8c3f534c8cb13f9ddbc463e1c44ef5 (diff) | |
download | askama-e03df3d9690e228a7a076107d64057c28d63cdfa.tar.gz askama-e03df3d9690e228a7a076107d64057c28d63cdfa.tar.bz2 askama-e03df3d9690e228a7a076107d64057c28d63cdfa.zip |
Improve error message when template is not found
Diffstat (limited to '')
-rw-r--r-- | askama_shared/src/path.rs | 2 |
1 files changed, 1 insertions, 1 deletions
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)); } } |