Merge pull request #8104 from abernix/feature/8034-improve-compiler-error

Improve build plugin error when asset is added with empty contents
This commit is contained in:
Ben Newman
2016-11-29 18:12:57 -05:00
committed by GitHub

View File

@@ -726,7 +726,8 @@ class ResourceSlot {
if (_.isString(options.data)) {
options.data = new Buffer(options.data);
} else {
throw new Error("'data' option to addAsset must be a Buffer or String.");
throw new Error("'data' option to addAsset must be a Buffer or " +
"String: " + self.inputResource.path);
}
}