feature: template file lookup error message

This commit is contained in:
harttle
2016-11-01 00:22:41 +08:00
parent 9961afa3dd
commit f8269f4d20
4 changed files with 44 additions and 12 deletions
+3
View File
@@ -63,6 +63,9 @@ var _engine = {
})
.catch((e) => {
e.file = filepath;
if (e.code === 'ENOENT') {
e.message = `Failed to lookup ${filepath} in: ${this.options.root}`;
}
throw e;
});
},