Skip to content

Commit

Permalink
[fix] Shows error message
Browse files Browse the repository at this point in the history
  • Loading branch information
jfhbrook authored and pksunkara committed Jun 14, 2012
1 parent 4b8490a commit 8f055cd
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions lib/prompt.js
Expand Up @@ -431,8 +431,8 @@ prompt.getInput = function (prop, callback) {

if (!valid.valid) {
logger.error('Invalid input for ' + name.grey);
if (prop.warning) {
logger.error(prop.warning);
if (prop.schema.message) {
logger.error(prop.schema.message);
}

prompt.emit('invalid', prop, line);
Expand Down

0 comments on commit 8f055cd

Please sign in to comment.