Skip to content

Commit

Permalink
#700788 by greg.1.anderson. Too verbose 'command could not be found' msg
Browse files Browse the repository at this point in the history
  • Loading branch information
massgov-outsider committed Feb 1, 2010
1 parent 2eacae5 commit e0cf3ba
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions drush.php
Original file line number Diff line number Diff line change
Expand Up @@ -104,15 +104,14 @@ function drush_main() {
if (!$command_found) {
// If we reach this point, we have not found either a valid or matching command.
$args = implode(' ', drush_get_arguments());
$drush_command = array_pop(explode('/', DRUSH_COMMAND));
if (isset($command) && is_array($command)) {
foreach ($command['bootstrap_errors'] as $key => $error) {
drush_set_error($key, $error);
}
drush_set_error('DRUSH_COMMAND_NOT_EXECUTABLE', dt("The command '!drush_command !args' could not be executed.", array('!drush_command' => $drush_command, '!args' => $args)));
drush_set_error('DRUSH_COMMAND_NOT_EXECUTABLE', dt("The drush command '!args' could not be executed.", array('!args' => $args)));
}
elseif (!empty($args)) {
drush_set_error('DRUSH_COMMAND_NOT_FOUND', dt("The command '!drush_command !args' could not be found.", array('!drush_command' => $drush_command, '!args' => $args)));
drush_set_error('DRUSH_COMMAND_NOT_FOUND', dt("The drush command '!args' could not be found.", array('!args' => $args)));
}
else {
// This can occur if we get an error during _drush_bootstrap_drush_validate();
Expand Down

0 comments on commit e0cf3ba

Please sign in to comment.