Skip to content

Commit

Permalink
Display information instead of stack traces if the user didn't enter …
Browse files Browse the repository at this point in the history
…a valid color.

closes ryanzec#1
  • Loading branch information
jantimon committed May 10, 2016
1 parent d2304dd commit 6157ff6
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ var ntc = require('./ntc');
var color = oneColor(process.argv[2]);

if (!process.argv[2]) {
console.log('Usage: name-that-color "#C0FFEE"');
console.log('Usage: name-that-color "#C00FEE"');
} else if (color === false) {
console.log('"' + process.argv[2] + '" is not a valid color.');
} else {
Expand Down

0 comments on commit 6157ff6

Please sign in to comment.