From d8066dc25173e16ae9b1ac8fc1132a68b2992a2d Mon Sep 17 00:00:00 2001 From: Brion Vibber Date: Sun, 26 Jun 2005 18:50:21 +0000 Subject: [PATCH] Make sure we die with nonzero return code for command-line scripts --- includes/GlobalFunctions.php | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/includes/GlobalFunctions.php b/includes/GlobalFunctions.php index d310e2749f..71163d3e46 100644 --- a/includes/GlobalFunctions.php +++ b/includes/GlobalFunctions.php @@ -431,7 +431,8 @@ function wfDebugDieBacktrace( $msg = '' ) { $msg .= "\n

Backtrace:

\n$backtrace"; } } - die( $msg ); + echo $msg; + die( -1 ); } function wfBacktrace() { -- 2.20.1