X-Git-Url: https://git.heureux-cyclage.org/?a=blobdiff_plain;f=maintenance%2FupdateExtensionJsonSchema.php;h=264f4be1d6990a7d17e6ac43af1a9ae86679252a;hb=06fe44872c16bc968f94131b1d05c50d7e3101e6;hp=427769f19f1a164aa18d69eefd926607ec7b08ab;hpb=17914cc990c375340b688900b7782f1d7d5339fc;p=lhc%2Fweb%2Fwiklou.git diff --git a/maintenance/updateExtensionJsonSchema.php b/maintenance/updateExtensionJsonSchema.php index 427769f19f..264f4be1d6 100644 --- a/maintenance/updateExtensionJsonSchema.php +++ b/maintenance/updateExtensionJsonSchema.php @@ -14,12 +14,12 @@ class UpdateExtensionJsonSchema extends Maintenance { public function execute() { $filename = $this->getArg( 0 ); if ( !is_readable( $filename ) ) { - $this->error( "Error: Unable to read $filename", 1 ); + $this->fatalError( "Error: Unable to read $filename" ); } $json = FormatJson::decode( file_get_contents( $filename ), true ); if ( $json === null ) { - $this->error( "Error: Invalid JSON", 1 ); + $this->fatalError( "Error: Invalid JSON" ); } if ( !isset( $json['manifest_version'] ) ) {