function drush_die

8.0.x drush.inc drush_die($msg = NULL, $status = NULL)
6.x drush.inc drush_die($msg = NULL, $status = NULL)
7.x drush.inc drush_die($msg = NULL, $status = NULL)
3.x drush.inc drush_die($msg = NULL, $status = NULL)
4.x drush.inc drush_die($msg = NULL, $status = NULL)
5.x drush.inc drush_die($msg = NULL, $status = NULL)
master drush.inc drush_die($msg = NULL, $status = NULL)

Exits with a message. In general, you should use drush_set_error() instead of this function. That lets drush proceed with other tasks. TODO: Exit with a correct status code.

9 calls to drush_die()
drush_core_rsync in commands/core/rsync.core.inc
Entrypoint for drush rsync.
drush_do_multiple_command in includes/drush.inc
Used by functions that operate on lists of sites, moving information from the source to the destination. Currenlty this includes 'drush rsync' and 'drush sql sync'.
drush_remote_command in includes/drush.inc
Process commands that are executed on a remote drush instance.
pm_update_packages in commands/pm/updatecode.pm.inc
Update packages according to an array of releases, following interactive confirmation from the user.
update_main in commands/core/drupal/update_6.inc

... See full list

File

includes/drush.inc, line 798
The drush API implementation and helpers.

Code

function drush_die($msg = NULL, $status = NULL) {
  die($msg ? "drush: $msg\n" : '');
}