jenkins-bot has submitted this change and it was merged.

Change subject: Make MigrateFileRepoLayout use getErrors()
......................................................................


Make MigrateFileRepoLayout use getErrors()

Change-Id: I5281c4ded9eba42eccaf5a67e809a0175fa057ce
---
M maintenance/migrateFileRepoLayout.php
1 file changed, 4 insertions(+), 4 deletions(-)

Approvals:
  Krinkle: Looks good to me, approved
  jenkins-bot: Verified



diff --git a/maintenance/migrateFileRepoLayout.php 
b/maintenance/migrateFileRepoLayout.php
index bd73f8b..f771fff 100644
--- a/maintenance/migrateFileRepoLayout.php
+++ b/maintenance/migrateFileRepoLayout.php
@@ -104,7 +104,7 @@
                                        $status = $be->prepare( [
                                                'dir' => dirname( $dpath ), 
'bypassReadOnly' => 1 ] );
                                        if ( !$status->isOK() ) {
-                                               $this->error( print_r( 
$status->getErrorsArray(), true ) );
+                                               $this->error( print_r( 
$status->getErrors(), true ) );
                                        }
 
                                        $batch[] = [ 'op' => 'copy', 
'overwrite' => true,
@@ -137,7 +137,7 @@
                                        $status = $be->prepare( [
                                                'dir' => dirname( $dpath ), 
'bypassReadOnly' => 1 ] );
                                        if ( !$status->isOK() ) {
-                                               $this->error( print_r( 
$status->getErrorsArray(), true ) );
+                                               $this->error( print_r( 
$status->getErrors(), true ) );
                                        }
                                        $batch[] = [ 'op' => 'copy', 
'overwrite' => true,
                                                'src' => $spath, 'dst' => 
$dpath, 'img' => $ofile->getArchiveName() ];
@@ -195,7 +195,7 @@
                                $status = $be->prepare( [
                                        'dir' => dirname( $dpath ), 
'bypassReadOnly' => 1 ] );
                                if ( !$status->isOK() ) {
-                                       $this->error( print_r( 
$status->getErrorsArray(), true ) );
+                                       $this->error( print_r( 
$status->getErrors(), true ) );
                                }
 
                                $batch[] = [ 'op' => 'copy', 'src' => $spath, 
'dst' => $dpath,
@@ -227,7 +227,7 @@
 
                $status = $be->doOperations( $ops, [ 'bypassReadOnly' => 1 ] );
                if ( !$status->isOK() ) {
-                       $this->output( print_r( $status->getErrorsArray(), true 
) );
+                       $this->output( print_r( $status->getErrors(), true ) );
                }
 
                $this->output( "Batch done\n\n" );

-- 
To view, visit https://gerrit.wikimedia.org/r/312149
To unsubscribe, visit https://gerrit.wikimedia.org/r/settings

Gerrit-MessageType: merged
Gerrit-Change-Id: I5281c4ded9eba42eccaf5a67e809a0175fa057ce
Gerrit-PatchSet: 1
Gerrit-Project: mediawiki/core
Gerrit-Branch: master
Gerrit-Owner: Aaron Schulz <asch...@wikimedia.org>
Gerrit-Reviewer: Krinkle <krinklem...@gmail.com>
Gerrit-Reviewer: Parent5446 <tylerro...@gmail.com>
Gerrit-Reviewer: jenkins-bot <>

_______________________________________________
MediaWiki-commits mailing list
MediaWiki-commits@lists.wikimedia.org
https://lists.wikimedia.org/mailman/listinfo/mediawiki-commits

Reply via email to