aboutsummaryrefslogtreecommitdiffstats
path: root/askama_shared
diff options
context:
space:
mode:
authorLibravatar Dirkjan Ochtman <dirkjan@ochtman.nl>2018-04-09 10:41:06 +0200
committerLibravatar Dirkjan Ochtman <dirkjan@ochtman.nl>2018-04-09 10:41:06 +0200
commite03df3d9690e228a7a076107d64057c28d63cdfa (patch)
tree0f2b4fa8a9ce8013ac9ce61f5865059c5d030a5f /askama_shared
parent36cbfd4bad8c3f534c8cb13f9ddbc463e1c44ef5 (diff)
downloadaskama-e03df3d9690e228a7a076107d64057c28d63cdfa.tar.gz
askama-e03df3d9690e228a7a076107d64057c28d63cdfa.tar.bz2
askama-e03df3d9690e228a7a076107d64057c28d63cdfa.zip
Improve error message when template is not found
Diffstat (limited to 'askama_shared')
-rw-r--r--askama_shared/src/path.rs2
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));
}
}