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.

File

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

Code

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