From 508a3d85457f3811ed5ef82aa0fe137f1e7f4098 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Gerg=C5=91=20Tisza?= Date: Sun, 5 Mar 2017 14:55:19 -0800 Subject: [PATCH] Fix error output Bug: T159581 Bug: T159831 Change-Id: Ib8d5ddf4ca95defe705a6f7db01dc6f43ca5d9db --- maintenance/GenerateFancyCaptchas.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/maintenance/GenerateFancyCaptchas.php b/maintenance/GenerateFancyCaptchas.php index f891395e0..5c17c9946 100644 --- a/maintenance/GenerateFancyCaptchas.php +++ b/maintenance/GenerateFancyCaptchas.php @@ -194,7 +194,7 @@ class GenerateFancyCaptchas extends Maintenance { } } else { $this->output( "Errored.\n" ); - $this->output( implode( "\n", $ret->getErrors() ) ); + $this->output( implode( "\n", Status::wrap( $ret )->getWikiText( null, null, 'en' ) ) ); } if ( $deleteOldCaptchas ) { @@ -216,7 +216,7 @@ class GenerateFancyCaptchas extends Maintenance { ); } else { $this->output( "Errored.\n" ); - $this->output( implode( "\n", $ret->getErrors() ) ); + $this->output( implode( "\n", Status::wrap( $ret )->getWikiText( null, null, 'en' ) ) ); } }