From f205e2bde105c3b7a5244ec0ac1733cee111dbca Mon Sep 17 00:00:00 2001 From: Jeff Williams Date: Sat, 10 Nov 2012 11:19:30 -0800 Subject: [PATCH] don't swallow uncaught exceptions (#257) --- jsdoc.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/jsdoc.js b/jsdoc.js index 2005d9e9..6996b5f7 100644 --- a/jsdoc.js +++ b/jsdoc.js @@ -426,12 +426,12 @@ function main() { try { main(); } catch(e) { if (e.rhinoException != null) { - e.rhinoException.printStackTrace(); + // TODO: print to stderr + e.rhinoException.printStackTrace(); } else { throw e; } } finally { env.run.finish = new Date(); - process.exit(0); }