X-Git-Url: https://git.heureux-cyclage.org/?a=blobdiff_plain;ds=sidebyside;f=maintenance%2FcopyFileBackend.php;h=9e36742726aa38e5d415eaf70fa7d60e9a0d261c;hb=5cab4cb67af3564bcd51db05a06b015787b3a4cd;hp=ce4063842cd93f0d55ddf2b5fd59449657805b52;hpb=f97d13a10c1b7dac7c4463c3ccc75e21a731c7a2;p=lhc%2Fweb%2Fwiklou.git diff --git a/maintenance/copyFileBackend.php b/maintenance/copyFileBackend.php index ce4063842c..9e36742726 100644 --- a/maintenance/copyFileBackend.php +++ b/maintenance/copyFileBackend.php @@ -260,7 +260,7 @@ class CopyFileBackend extends Maintenance { // Note: prepare() is usually fast for key/value backends $status = $dst->prepare( [ 'dir' => dirname( $dstPath ), 'bypassReadOnly' => 1 ] ); if ( !$status->isOK() ) { - $this->error( print_r( Status::wrap( $status )->getWikiText(), true ) ); + $this->error( Status::wrap( $status )->getMessage( false, false, 'en' )->text() ); $this->fatalError( "$domainId: Could not copy $srcPath to $dstPath." ); } $ops[] = [ 'op' => 'store', @@ -277,7 +277,7 @@ class CopyFileBackend extends Maintenance { } $elapsed_ms = floor( ( microtime( true ) - $t_start ) * 1000 ); if ( !$status->isOK() ) { - $this->error( print_r( Status::wrap( $status )->getWikiText(), true ) ); + $this->error( Status::wrap( $status )->getMessage( false, false, 'en' )->text() ); $this->fatalError( "$domainId: Could not copy file batch." ); } elseif ( count( $copiedRel ) ) { $this->output( "\n\tCopied these file(s) [{$elapsed_ms}ms]:\n\t" . @@ -314,7 +314,7 @@ class CopyFileBackend extends Maintenance { } $elapsed_ms = floor( ( microtime( true ) - $t_start ) * 1000 ); if ( !$status->isOK() ) { - $this->error( print_r( Status::wrap( $status )->getWikiText(), true ) ); + $this->error( Status::wrap( $status )->getMessage( false, false, 'en' )->text() ); $this->fatalError( "$domainId: Could not delete file batch." ); } elseif ( count( $deletedRel ) ) { $this->output( "\n\tDeleted these file(s) [{$elapsed_ms}ms]:\n\t" .