From efb5f77d791f90b0b8544dd09aef0c2ba70b2cff Mon Sep 17 00:00:00 2001 From: Max Semenik Date: Mon, 8 Mar 2010 17:09:55 +0000 Subject: [PATCH] Fixed error output in moveBatch.php --- maintenance/moveBatch.php | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/maintenance/moveBatch.php b/maintenance/moveBatch.php index bd4ef7b112..d1d3193b5c 100644 --- a/maintenance/moveBatch.php +++ b/maintenance/moveBatch.php @@ -92,7 +92,8 @@ class MoveBatch extends Maintenance { $dbw->begin(); $err = $source->moveTo( $dest, false, $reason ); if( $err !== true ) { - $this->output( "\nFAILED: $err" ); + $msg = array_shift( $err[0] ); + $this->output( "\nFAILED: " . wfMsg( $msg, $err[0] ) ); } $dbw->commit(); $this->output( "\n" ); -- 2.20.1