mirror of
https://github.com/meteor/meteor.git
synced 2026-05-02 03:01:46 -04:00
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:
@@ -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);
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user