From 147cb86290d74bdf00c33665a3f33b873c2edf85 Mon Sep 17 00:00:00 2001 From: Chad Horohoe Date: Tue, 14 Dec 2010 13:37:53 +0000 Subject: [PATCH] Cleanup for r63578: Use Maintenance::error(), that's what its for --- maintenance/updateDoubleWidthSearch.php | 3 +-- maintenance/updateSearchIndex.php | 4 ++-- 2 files changed, 3 insertions(+), 4 deletions(-) diff --git a/maintenance/updateDoubleWidthSearch.php b/maintenance/updateDoubleWidthSearch.php index 789962867c..b18788061d 100644 --- a/maintenance/updateDoubleWidthSearch.php +++ b/maintenance/updateDoubleWidthSearch.php @@ -43,8 +43,7 @@ class UpdateDoubleWidthSearch extends Maintenance { $dbw = wfGetDB( DB_MASTER ); if ( $dbw->getType() !== 'mysql' ) { - $this->output( "This change is only needed on MySQL, quitting.\n" ); - exit( 1 ); + $this->error( "This change is only needed on MySQL, quitting.\n", true ); } $res = $this->findRows( $dbw ); diff --git a/maintenance/updateSearchIndex.php b/maintenance/updateSearchIndex.php index eede10934c..6de3ced626 100644 --- a/maintenance/updateSearchIndex.php +++ b/maintenance/updateSearchIndex.php @@ -70,10 +70,10 @@ class UpdateSearchIndex extends Maintenance { fwrite( $file, $end ); fclose( $file ); } else { - $this->output( "*** Couldn't write to the $posFile!\n" ); + $this->error( "*** Couldn't write to the $posFile!\n" ); } } else { - $this->output( "*** Couldn't write to the $posFile!\n" ); + $this->error( "*** Couldn't write to the $posFile!\n" ); } } -- 2.20.1