X-Git-Url: https://git.heureux-cyclage.org/?a=blobdiff_plain;f=maintenance%2Fbenchmarks%2FbenchmarkTidy.php;h=6698db3e89e3dbd4b9b609a2a92979a6a3030df1;hb=99d73dc9033603b03198f84854e9a5078bde89b8;hp=14791745fe17a5abe141d8b5c1986fd5876009ad;hpb=d5a7166771613dfe4ed9fb75fa5efeced6134bd1;p=lhc%2Fweb%2Fwiklou.git diff --git a/maintenance/benchmarks/benchmarkTidy.php b/maintenance/benchmarks/benchmarkTidy.php index 14791745fe..6698db3e89 100644 --- a/maintenance/benchmarks/benchmarkTidy.php +++ b/maintenance/benchmarks/benchmarkTidy.php @@ -15,19 +15,19 @@ class BenchmarkTidy extends Maintenance { public function execute() { $html = file_get_contents( $this->getOption( 'file' ) ); if ( $html === false ) { - $this->error( "Unable to open input file", 1 ); + $this->fatalError( "Unable to open input file" ); } if ( $this->hasOption( 'driver' ) || $this->hasOption( 'tidy-config' ) ) { $config = json_decode( $this->getOption( 'tidy-config', '{}' ), true ); if ( !is_array( $config ) ) { - $this->error( "Invalid JSON tidy config", 1 ); + $this->fatalError( "Invalid JSON tidy config" ); } $config += [ 'driver' => $this->getOption( 'driver', 'RemexHtml' ) ]; $driver = MWTidy::factory( $config ); } else { $driver = MWTidy::singleton(); if ( !$driver ) { - $this->error( "Tidy disabled or not installed", 1 ); + $this->fatalError( "Tidy disabled or not installed" ); } }