Don't exit with status 0 after an exception, for the benefit of other scripts dependi...
authorAlexandre Emsenhuber <ialex@users.mediawiki.org>
Thu, 3 Dec 2009 21:47:52 +0000 (21:47 +0000)
committerAlexandre Emsenhuber <ialex@users.mediawiki.org>
Thu, 3 Dec 2009 21:47:52 +0000 (21:47 +0000)
maintenance/doMaintenance.php

index cb6faf3..848855e 100644 (file)
@@ -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();