[FileBackend] Made copy script use error() for status dump.
authorAaron Schulz <aschulz@wikimedia.org>
Thu, 26 Jul 2012 01:45:07 +0000 (18:45 -0700)
committerAaron Schulz <aschulz@wikimedia.org>
Thu, 26 Jul 2012 01:45:07 +0000 (18:45 -0700)
Change-Id: I68a359e9ac1490683fb650d4c43f9b643e321701

maintenance/syncFileBackend.php

index c4ba66e..2dcf757 100644 (file)
@@ -129,7 +129,7 @@ class SyncFileBackend extends Maintenance {
                        if ( $status->isOK() ) {
                                $lastOKPos = max( $lastOKPos, $lastPosInBatch );
                        } else {
-                               $this->output( print_r( $status->getErrorsArray(), true ) );
+                               $this->error( print_r( $status->getErrorsArray(), true ) );
                                break; // no gaps; everything up to $lastPos must be OK
                        }