From 13274551c592afa3e7df9c2fd7af52f4b6cd7dfd Mon Sep 17 00:00:00 2001 From: Jeff Williams Date: Sat, 10 Nov 2012 11:27:08 -0800 Subject: [PATCH] Revert "don't swallow uncaught exceptions (#257)" This reverts commit f205e2bde105c3b7a5244ec0ac1733cee111dbca. --- jsdoc.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) 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); }