Skip to content

Commit

Permalink
Simple throw on JS error in jake.exec shell-out.
Browse files Browse the repository at this point in the history
  • Loading branch information
mde committed Feb 5, 2012
1 parent 43f78ad commit 9d21f87
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/utils.js
Expand Up @@ -36,7 +36,7 @@ utils = new (function () {
if (next) {
exec(next, function (err, stdout, stderr) {
if (err && breakOnError) {
this.fail('Error: ' + JSON.stringify(err));
throw err;
}
if (stderr && options.stderr) {
console.log('Error: ' + stderr);
Expand Down

0 comments on commit 9d21f87

Please sign in to comment.