Skip to content

Commit

Permalink
Make invalid short option error more helpful.
Browse files Browse the repository at this point in the history
Refs #3157
  • Loading branch information
markstory committed Aug 28, 2012
1 parent fba17cf commit b27c8a0
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/Cake/Console/ConsoleInputOption.php
Expand Up @@ -93,7 +93,7 @@ public function __construct($name, $short = null, $help = '', $boolean = false,
}
if (strlen($this->_short) > 1) {
throw new ConsoleException(
__d('cake_console', 'Short options must be one letter.')
__d('cake_console', 'Short option "%s" is invalid, short options must be one letter.', $this->_short)
);
}
}
Expand Down

0 comments on commit b27c8a0

Please sign in to comment.