$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 );
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" );
}
}