X-Git-Url: https://git.heureux-cyclage.org/?a=blobdiff_plain;f=maintenance%2FvalidateRegistrationFile.php;h=ea27a7e3c2c353a6c14935034630d2c6f419de4a;hb=c16af68fb62948dd8079a7fa49b7c12b9a748121;hp=aa1f668d3ba30227a4e8298277f2e550fbdf3044;hpb=6b604178acc9beecd2abc638043c9067043efc12;p=lhc%2Fweb%2Fwiklou.git diff --git a/maintenance/validateRegistrationFile.php b/maintenance/validateRegistrationFile.php index aa1f668d3b..ea27a7e3c2 100644 --- a/maintenance/validateRegistrationFile.php +++ b/maintenance/validateRegistrationFile.php @@ -9,7 +9,7 @@ class ValidateRegistrationFile extends Maintenance { } public function execute() { $validator = new ExtensionJsonValidator( function ( $msg ) { - $this->error( $msg, 1 ); + $this->fatalError( $msg ); } ); $validator->checkDependencies(); $path = $this->getArg( 0 ); @@ -17,7 +17,7 @@ class ValidateRegistrationFile extends Maintenance { $validator->validate( $path ); $this->output( "$path validates against the schema!\n" ); } catch ( ExtensionJsonValidationError $e ) { - $this->error( $e->getMessage(), 1 ); + $this->fatalError( $e->getMessage() ); } } }