From 67ce63fe1e3980c275f57f6379fe47f01ab0da07 Mon Sep 17 00:00:00 2001 From: Alexandre Emsenhuber Date: Thu, 3 Dec 2009 21:47:52 +0000 Subject: [PATCH] Don't exit with status 0 after an exception, for the benefit of other scripts depending on it --- maintenance/doMaintenance.php | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/maintenance/doMaintenance.php b/maintenance/doMaintenance.php index cb6faf3070..848855eb6c 100644 --- a/maintenance/doMaintenance.php +++ b/maintenance/doMaintenance.php @@ -87,9 +87,11 @@ $wgTitle = null; // Do the work try { $maintenance->execute(); + + // Potentially debug globals + $maintenance->globals(); } catch( MWException $mwe ) { echo( $mwe->getText() ); + exit( 1 ); } -// Potentially debug globals -$maintenance->globals(); -- 2.20.1