Permalink
Browse files

log error if no key for [32minfo[39m: Welcome to [90mNodejitsu[39m [3…

…5mkrwindham[39m

[32minfo[39m:    jitsu v0.11.5, node v0.8.17
[32minfo[39m:    It worked if it ends with [90mNodejitsu[39m[1m[32m ok[39m[22m
[32minfo[39m:    Executing command [35mconfig set[39m
[36mhelp[39m:    For help with this error contact Nodejitsu Support:
[36mhelp[39m:      webchat: <http://webchat.nodejitsu.com/>
[36mhelp[39m:          irc: <irc://chat.freenode.net/#nodejitsu>
[36mhelp[39m:        email: <support@nodejitsu.com>
[36mhelp[39m:
[36mhelp[39m:      Copy and paste this output to a gist (http://gist.github.com/)
[32minfo[39m:    [90mNodejitsu [39m[1m[31mnot ok[39m[22m
  • Loading branch information...
1 parent 7c76d79 commit 3c8e0f17f7284f373d6aa381f78958d7fbd9cc9d @gradus committed Jan 14, 2013
Showing with 1 addition and 1 deletion.
  1. +1 −1 lib/commands.js
View
@@ -28,7 +28,7 @@ exports.set = function (key, value, callback) {
var args = Array.prototype.slice.call(arguments);
callback = args.pop();
- if (args.indexOf(null) == 1){
+ if (args.indexOf(null) == 0 || 1){
cliConfig.app.log.error('You must pass both <key> and <value>');
return callback(true, true);
}

0 comments on commit 3c8e0f1

Please sign in to comment.