Actually fail the surrounding jake task on errors in compileFile()

This commit is contained in:
Arnavion
2014-12-12 08:49:21 -08:00
parent 001e29cd75
commit f6fd263cbd

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});