Merge pull request #1460 from Arnavion/compilefile-fail-task-on-error

Actually fail the surrounding jake task on errors in compileFile()
This commit is contained in:
Mohamed Hegazy
2014-12-12 09:02:09 -08:00

View File

@@ -242,7 +242,7 @@ function compileFile(outFile, sources, prereqs, prefixes, useBuiltCompiler, noOu
});
ex.addListener("error", function() {
fs.unlinkSync(outFile);
console.log("Compilation of " + outFile + " unsuccessful");
fail("Compilation of " + outFile + " unsuccessful");
});
ex.run();
}, {async: true});