Make sure we die with nonzero return code for command-line scripts
This commit is contained in:
parent
39f7b246de
commit
d8066dc251
1 changed files with 2 additions and 1 deletions
|
|
@ -431,7 +431,8 @@ function wfDebugDieBacktrace( $msg = '' ) {
|
|||
$msg .= "\n<p>Backtrace:</p>\n$backtrace";
|
||||
}
|
||||
}
|
||||
die( $msg );
|
||||
echo $msg;
|
||||
die( -1 );
|
||||
}
|
||||
|
||||
function wfBacktrace() {
|
||||
|
|
|
|||
Loading…
Reference in a new issue