diff --git a/jsdoc.js b/jsdoc.js index 6996b5f7..2005d9e9 100644 --- a/jsdoc.js +++ b/jsdoc.js @@ -426,12 +426,12 @@ function main() { try { main(); } catch(e) { if (e.rhinoException != null) { - // TODO: print to stderr - e.rhinoException.printStackTrace(); + e.rhinoException.printStackTrace(); } else { throw e; } } finally { env.run.finish = new Date(); + process.exit(0); }