1
0
Fork 0
mirror of https://github.com/jashkenas/coffeescript.git synced 2022-11-09 12:23:24 -05:00

fixes #1633: error output when using coffee -e

This commit is contained in:
Michael Ficarra 2011-08-27 13:21:03 -04:00
parent 539b872e02
commit b4e2240ede
2 changed files with 2 additions and 2 deletions

View file

@ -141,7 +141,7 @@
CoffeeScript.emit('failure', err, task);
if (CoffeeScript.listeners('failure').length) return;
if (o.watch) return printLine(err.message);
printWarn(err.stack);
printWarn(err instanceof Error && err.stack || ("ERROR: " + err));
return process.exit(1);
}
};