Fix error output

Bug: T159581
Bug: T159831
Change-Id: Ib8d5ddf4ca95defe705a6f7db01dc6f43ca5d9db
This commit is contained in:
Gergő Tisza 2017-03-05 14:55:19 -08:00 committed by Reedy
parent 506734b357
commit 508a3d8545

View file

@ -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' ) ) );
}
}