function drush_bootstrap_error
| 6.x bootstrap.inc | drush_bootstrap_error($code, $message = null) |
| 5.x bootstrap.inc | drush_bootstrap_error($code, $message = null) |
| 3.x environment.inc | drush_bootstrap_error($code, $message = null) |
| 4.x environment.inc | drush_bootstrap_error($code, $message = null) |
Helper function to collect any errors that occur during the bootstrap process. Always returns FALSE, for convenience.
4 calls to drush_bootstrap_error()
- drush_environment_table_lib in includes/
environment.inc - _drush_bootstrap_drupal_database_validate in includes/
bootstrap.inc - Validate the DRUSH_BOOTSTRAP_DRUPAL_DATABASE phase
- _drush_bootstrap_drupal_root_validate in includes/
bootstrap.inc - Validate the DRUSH_BOOTSTRAP_DRUPAL_ROOT phase.
- _drush_bootstrap_drupal_site_validate in includes/
bootstrap.inc - VALIDATE the DRUSH_BOOTSTRAP_DRUPAL_SITE phase.
File
- includes/
bootstrap.inc, line 381 - Drush bootstrapping code.
Code
function drush_bootstrap_error($code, $message = null) {
$errors = drush_get_context('DRUSH_BOOTSTRAP_ERRORS');
$errors[$code] = $message;
drush_set_context('DRUSH_BOOTSTRAP_ERRORS', $errors);
return FALSE;
}