You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@cordova.apache.org by ag...@apache.org on 2013/12/10 02:46:37 UTC

[2/2] git commit: CB-5613 Never hide stack trace on uncaughtExceptions.

CB-5613 Never hide stack trace on uncaughtExceptions.

Uncaught exceptions are bugs, so stack traces are always helpful.


Project: http://git-wip-us.apache.org/repos/asf/cordova-cli/repo
Commit: http://git-wip-us.apache.org/repos/asf/cordova-cli/commit/ec88d6af
Tree: http://git-wip-us.apache.org/repos/asf/cordova-cli/tree/ec88d6af
Diff: http://git-wip-us.apache.org/repos/asf/cordova-cli/diff/ec88d6af

Branch: refs/heads/master
Commit: ec88d6af82a73964abc96e258d4d698c4f2825b9
Parents: 3b184f4
Author: Andrew Grieve <ag...@chromium.org>
Authored: Mon Dec 9 20:45:46 2013 -0500
Committer: Andrew Grieve <ag...@chromium.org>
Committed: Mon Dec 9 20:45:46 2013 -0500

----------------------------------------------------------------------
 src/cli.js | 9 ---------
 1 file changed, 9 deletions(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/cordova-cli/blob/ec88d6af/src/cli.js
----------------------------------------------------------------------
diff --git a/src/cli.js b/src/cli.js
index ef3ba58..2916062 100755
--- a/src/cli.js
+++ b/src/cli.js
@@ -48,15 +48,6 @@ module.exports = function CLI(inputArgs) {
         },
         cmd;
 
-    // provide clean output on exceptions rather than dumping a stack trace
-    process.on('uncaughtException', function(err){
-        if (opts.verbose) {
-            console.error(err.stack);
-        } else {
-            console.error(err);
-        }
-        process.exit(1);
-    });
     cordova.on('results', console.log);
 
     if (!opts.silent) {