Skip to content

Commit 9ab15d4

Browse files
committed
Bundler failures should cause non-zero exit code.
Fixes meteor#1515.
1 parent daf0a48 commit 9ab15d4

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

tools/run.js

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -511,6 +511,8 @@ exports.run = function (context, options) {
511511
if (bundleResult.errors) {
512512
logToClients({stdout: "=> Errors prevented startup:\n\n" +
513513
bundleResult.errors.formatMessages()});
514+
// Ensure that if we are running under --once, we exit with a non-0 code.
515+
Status.code = 1;
514516
Status.hardCrashed("has errors");
515517
startWatching(watchSet);
516518
return;

0 commit comments

Comments
 (0)