function drush_bootstrap_error

8.0.x bootstrap.inc drush_bootstrap_error($code, $message = null)
6.x bootstrap.inc drush_bootstrap_error($code, $message = null)
7.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)
5.x bootstrap.inc drush_bootstrap_error($code, $message = null)
master bootstrap.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()
DrupalBoot::bootstrap_drupal_database_validate in lib/Drush/Boot/DrupalBoot.php
Validate the DRUSH_BOOTSTRAP_DRUPAL_DATABASE phase
DrupalBoot::bootstrap_drupal_root_validate in lib/Drush/Boot/DrupalBoot.php
Validate the DRUSH_BOOTSTRAP_DRUPAL_ROOT phase.
DrupalBoot::bootstrap_drupal_site_validate_settings_present in lib/Drush/Boot/DrupalBoot.php
Validate that the Drupal site has all of the settings that it needs to operated.
drush_bootstrap in includes/bootstrap.inc
Bootstrap Drush to the desired phase.

File

includes/bootstrap.inc, line 526

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;
}