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.

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