Include user name in weird User insertion exception.
authorAaron Schulz <aschulz@wikimedia.org>
Fri, 3 May 2013 23:14:31 +0000 (16:14 -0700)
committerAaron Schulz <aschulz@wikimedia.org>
Fri, 3 May 2013 23:14:31 +0000 (16:14 -0700)
Change-Id: I70fea9819e968ae306de5c3c3eee4292d3fa17d3

includes/User.php

index 37a384c..5a525bf 100644 (file)
@@ -3263,7 +3263,7 @@ class User {
                        }
                        if ( !$loaded ) {
                                throw new MWException( __METHOD__ . ": hit a key conflict attempting " .
-                                       "to insert a user row, but then it doesn't exist when we select it!" );
+                                       "to insert user '{$this->mName}' row, but it was not present in select!" );
                        }
                        return Status::newFatal( 'userexists' );
                }