Skip to content

Commit 7d67a93

Browse files
authored
More gentle exit() reporting. (#3797)
1 parent 3bd9282 commit 7d67a93

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

includes/preflight.inc

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@ function drush_main() {
2323
* will return a json string containing the options and log information
2424
* used by the script.
2525
*
26-
* The command will exit with '1' if it was successfully executed, and the
26+
* The command will exit with '0' if it was successfully executed, and the
2727
* result of drush_get_error() if it wasn't.
2828
*/
2929
function drush_shutdown() {
@@ -33,7 +33,7 @@ function drush_shutdown() {
3333
}
3434

3535
if (!Drush::config()->get(Runtime::DRUSH_RUNTIME_COMPLETED_NAMESPACE)) {
36-
throw new RuntimeException('Drush command terminated abnormally. Check for an exit() in your Drupal site.');
36+
Drush::logger()->warning('Drush command terminated abnormally. Check for an exit() in your Drupal site.');
3737
}
3838

3939
if (Drush::backend()) {

0 commit comments

Comments
 (0)