revert broken parts of cdde576182

Thanks @alagopus.
This commit is contained in:
Michael Ficarra
2013-01-07 22:32:39 -06:00
parent dfe91d1766
commit 66bbef4ce0
2 changed files with 2 additions and 4 deletions

View File

@@ -51,8 +51,7 @@
if (options.filename) {
err.message = "In " + options.filename + ", " + err.message;
}
console.error(err.message);
process.exit(1);
throw err;
}
header = "Generated by CoffeeScript " + this.VERSION;
return "// " + header + "\n" + js;

View File

@@ -40,8 +40,7 @@ exports.compile = compile = (code, options = {}) ->
return js unless options.header
catch err
err.message = "In #{options.filename}, #{err.message}" if options.filename
console.error err.message
process.exit 1
throw err
header = "Generated by CoffeeScript #{@VERSION}"
"// #{header}\n#{js}"