mirror of
https://gerrit.wikimedia.org/r/mediawiki/extensions/ConfirmEdit
synced 2024-11-23 15:56:50 +00:00
Improve error messages on deleteOldFancyCaptchas maintenance script
StatusValue::getErrors returns an array of messages, not strings. It cannot be use on implode(). Use wikitext as it the most readable on the console Change-Id: I4b794597f9bf35d3bc34c7d2c7691ee53d43b017
This commit is contained in:
parent
50ea5ffe3a
commit
911086980b
|
@ -82,8 +82,9 @@ class DeleteOldFancyCaptchas extends Maintenance {
|
|||
if ( $ret->isOK() ) {
|
||||
$this->output( "$count old fancy captchas deleted.\n" );
|
||||
} else {
|
||||
$status = Status::wrap( $ret );
|
||||
$this->output( "Deleting old captchas errored.\n" );
|
||||
$this->output( implode( "\n", $ret->getErrors() ) );
|
||||
$this->output( $status->getWikiText( false, false, 'en' ) );
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue