Pgehres has uploaded a new change for review.
https://gerrit.wikimedia.org/r/58544
Change subject: Adding more verbose handling to the --safe option.
......................................................................
Adding more verbose handling to the --safe option.
It will now list the multiple accounts that it found and that cause
--safe to fail.
Change-Id: Idd2f8b685782d8c8a8220f1aa342c0b2807fd017
---
M maintenance/migrateAccount.php
1 file changed, 4 insertions(+), 1 deletion(-)
git pull ssh://gerrit.wikimedia.org:29418/mediawiki/extensions/CentralAuth
refs/changes/44/58544/1
diff --git a/maintenance/migrateAccount.php b/maintenance/migrateAccount.php
index f2505bb..55f75f7 100644
--- a/maintenance/migrateAccount.php
+++ b/maintenance/migrateAccount.php
@@ -34,7 +34,10 @@
__METHOD__ );
if ( $result->numRows() !== 1 ) {
- $this->output( "ERROR: More than 1 user account
found for username.\n" );
+ $this->output( "ERROR: More than 1 user account
found for username:\n" );
+ foreach( $result as $row ) {
+ $this->output( "\t" . $row->ln_name .
"@" . $row->ln_wiki . "\n" );
+ }
$this->output( "ABORTING\n" );
exit(1);
--
To view, visit https://gerrit.wikimedia.org/r/58544
To unsubscribe, visit https://gerrit.wikimedia.org/r/settings
Gerrit-MessageType: newchange
Gerrit-Change-Id: Idd2f8b685782d8c8a8220f1aa342c0b2807fd017
Gerrit-PatchSet: 1
Gerrit-Project: mediawiki/extensions/CentralAuth
Gerrit-Branch: master
Gerrit-Owner: Pgehres <[email protected]>
_______________________________________________
MediaWiki-commits mailing list
[email protected]
https://lists.wikimedia.org/mailman/listinfo/mediawiki-commits