cordova-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From ste...@apache.org
Subject [09/10] git commit: CB-5613 Never hide stack trace on uncaughtExceptions.
Date Tue, 10 Dec 2013 18:47:09 GMT
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/ee95ff18
Tree: http://git-wip-us.apache.org/repos/asf/cordova-cli/tree/ee95ff18
Diff: http://git-wip-us.apache.org/repos/asf/cordova-cli/diff/ee95ff18

Branch: refs/heads/master
Commit: ee95ff18eed1a3bc13ead6004c87c2df4e95d2bd
Parents: c7a02e5
Author: Andrew Grieve <agrieve@chromium.org>
Authored: Mon Dec 9 20:45:46 2013 -0500
Committer: Steven Gill <stevengill97@gmail.com>
Committed: Tue Dec 10 10:44:32 2013 -0800

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


http://git-wip-us.apache.org/repos/asf/cordova-cli/blob/ee95ff18/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) {


Mime
View raw message