mirror of
https://github.com/meteor/meteor.git
synced 2026-05-02 03:01:46 -04:00
Better error messages.
This commit is contained in:
@@ -430,13 +430,15 @@ class ResourceSlot {
|
||||
|
||||
if (! archinfo.matches(unibuild.arch, "web")) {
|
||||
throw new Error("Document sections can only be emitted to " +
|
||||
"web targets");
|
||||
"web targets: " + self.inputResource.path);
|
||||
}
|
||||
if (options.section !== "head" && options.section !== "body") {
|
||||
throw new Error("'section' must be 'head' or 'body'");
|
||||
throw new Error("'section' must be 'head' or 'body': " +
|
||||
self.inputResource.path);
|
||||
}
|
||||
if (typeof options.data !== "string") {
|
||||
throw new Error("'data' option to appendDocument must be a string");
|
||||
throw new Error("'data' option to appendDocument must be a string: " +
|
||||
self.inputResource.path);
|
||||
}
|
||||
|
||||
self.outputResources.push({
|
||||
|
||||
Reference in New Issue
Block a user