From ed19e9c37b66e366d808634f5728c0f51d503066 Mon Sep 17 00:00:00 2001 From: Ruben Daniels Date: Sun, 3 May 2015 15:27:16 +0000 Subject: [PATCH] Fix typo and error reporting --- plugins/c9.cli.publish/install.js | 11 ++--------- plugins/c9.cli.publish/publish.js | 2 +- 2 files changed, 3 insertions(+), 10 deletions(-) diff --git a/plugins/c9.cli.publish/install.js b/plugins/c9.cli.publish/install.js index 1ea7e584..ce82d09c 100644 --- a/plugins/c9.cli.publish/install.js +++ b/plugins/c9.cli.publish/install.js @@ -77,10 +77,6 @@ define(function(require, exports, module) { "default": false, "boolean": true }, - "package" : { - description: "", - "default": false - }, "verbose" : { "description": "Output more information", "alias": "v", @@ -131,7 +127,7 @@ define(function(require, exports, module) { process.exit(1); } else { - console.log("Succesfully installed", name + (argv.debug ? "" : "@" + data.version)); + console.log("Successfully installed", name + (argv.debug ? "" : "@" + data.version)); process.exit(0); } }); @@ -154,9 +150,6 @@ define(function(require, exports, module) { "default": false, "boolean": true }, - "package" : { - description: "" - }, "verbose" : { "description": "Output more information", "alias": "v", @@ -187,7 +180,7 @@ define(function(require, exports, module) { process.exit(1); } else { - console.log("Succesfully removed", name); + console.log("Successfully removed", name); process.exit(0); } }); diff --git a/plugins/c9.cli.publish/publish.js b/plugins/c9.cli.publish/publish.js index be5acac7..e79214bd 100644 --- a/plugins/c9.cli.publish/publish.js +++ b/plugins/c9.cli.publish/publish.js @@ -723,7 +723,7 @@ define(function(require, exports, module) { request.on('response', function(res) { // TODO better handle version exists error - if (res.statusCode == 412 && !version) + if (res.statusCode == 412) console.error("ERROR: most likely version " + json.version + " already exisits, try increasing version"); if (res.statusCode != 200) return callback(new Error("ERROR: Unknown Error:" + res.statusCode));