better error message

This commit is contained in:
Adrian Malacoda 2017-12-28 00:32:49 -06:00
parent 9becb6e3a7
commit ae8630e038

View File

@ -62,7 +62,7 @@ impl ResourcesGenerator {
let mut handlebars = String::new();
for resource in &self.resources {
let canonical_source = canonicalize(&resource.source).expect("failed to get canonical path");
let canonical_source = canonicalize(&resource.source).expect(&format!("failed to get canonical path for {:?}", resource.source));
let data_type = if resource.raw {
"[u8]"
} else {