function DrupalBoot::report_command_error

8.0.x DrupalBoot.php DrupalBoot::report_command_error($command)
7.x DrupalBoot.php DrupalBoot::report_command_error($command)
master DrupalBoot.php DrupalBoot::report_command_error($command)

Called by Drush if a command is not found, or if the command was found, but did not meet requirements.

The implementation in BaseBoot should be sufficient for most cases, so this method typically will not need to be overridden.

Overrides BaseBoot::report_command_error

File

lib/Drush/Boot/DrupalBoot.php, line 61

Namespace

Drush\Boot

Class

DrupalBoot

Code

function report_command_error($command) {
  // If we reach this point, command doesn't fit requirements or we have not
  // found either a valid or matching command.

  // If no command was found check if it belongs to a disabled module.
  if (!$command) {
    $command = $this->drush_command_belongs_to_disabled_module();
  }
  parent::report_command_error($command);
}