Skip to content

Commit ca7f886

Browse files
committed
feat: add template name and path in error
1 parent eed7812 commit ca7f886

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/util/template.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -214,7 +214,7 @@ impl Template {
214214
}
215215

216216
let data = engine.template(name).render(upon::value!{ colors: &colors, image: image, custom: &custom, }).to_string().map_err(|error| {
217-
let message = format!("{:#}", error);
217+
let message = format!("[{} - {}]\n{:#}", name, input_path_absolute.display(), error);
218218
Report::new(error).wrap_err(message)
219219
})?;
220220

0 commit comments

Comments
 (0)