cordova-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From ste...@apache.org
Subject [07/10] git commit: CB-5613 use throw Error to include stack information for -d
Date Tue, 10 Dec 2013 18:47:07 GMT
CB-5613 use throw Error to include stack information for -d


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

Branch: refs/heads/master
Commit: c7a02e563f84b646e28fa4e811faaef76f7dd129
Parents: 6d241ff
Author: Josh Soref <jsoref@blackberry.com>
Authored: Mon Dec 9 15:48:46 2013 -0500
Committer: Steven Gill <stevengill97@gmail.com>
Committed: Tue Dec 10 10:44:32 2013 -0800

----------------------------------------------------------------------
 src/config.js | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/cordova-cli/blob/c7a02e56/src/config.js
----------------------------------------------------------------------
diff --git a/src/config.js b/src/config.js
index 4f4916a..5f2836c 100644
--- a/src/config.js
+++ b/src/config.js
@@ -49,7 +49,7 @@ module.exports.read = function get_config(project_root) {
             JSHINT(data);
             var err = JSHINT.errors[0];
             if (err) {
-                throw 'Parsing "'+config_json+'" at line '+err.line+" col "+err.character+";
"+err.reason;
+                throw new Error('Parsing "'+config_json+'" at line '+err.line+" col "+err.character+";
"+err.reason);
             }
             throw e;
         }


Mime
View raw message