Skip to content

Commit

Permalink
better error message for bad commands
Browse files Browse the repository at this point in the history
  • Loading branch information
kraih committed Jun 21, 2012
1 parent efb903f commit 22c6a55
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions lib/Mojolicious/Commands.pm
Expand Up @@ -70,8 +70,8 @@ sub run {
my $module;
$module = _command("${_}::$name") and last for @{$self->namespaces};

# Command missing
die qq{Command "$name" missing, maybe you need to install it?\n}
# Unknown command
die qq{Unknown command "$name", maybe you need to install it?\n}
unless $module;

# Run
Expand Down

0 comments on commit 22c6a55

Please sign in to comment.