Merge "Made use of proper backend-fail-store message"
authorjenkins-bot <jenkins-bot@gerrit.wikimedia.org>
Thu, 9 Jan 2014 00:31:05 +0000 (00:31 +0000)
committerGerrit Code Review <gerrit@wikimedia.org>
Thu, 9 Jan 2014 00:31:05 +0000 (00:31 +0000)
includes/filebackend/SwiftFileBackend.php

index 1480662..8790f05 100644 (file)
@@ -262,7 +262,7 @@ class SwiftFileBackend extends FileBackendStore {
                $sha1Hash = sha1_file( $params['src'] );
                wfRestoreWarnings();
                if ( $sha1Hash === false ) { // source doesn't exist?
-                       $status->fatal( 'backend-fail-copy', $params['src'], $params['dst'] );
+                       $status->fatal( 'backend-fail-store', $params['src'], $params['dst'] );
 
                        return $status;
                }
@@ -271,7 +271,7 @@ class SwiftFileBackend extends FileBackendStore {
 
                $handle = fopen( $params['src'], 'rb+' );
                if ( $handle === false ) { // source doesn't exist?
-                       $status->fatal( 'backend-fail-copy', $params['src'], $params['dst'] );
+                       $status->fatal( 'backend-fail-store', $params['src'], $params['dst'] );
 
                        return $status;
                }