Tweaked CAS log message for User::saveSettings
authorAaron Schulz <aschulz@wikimedia.org>
Thu, 16 Apr 2015 00:58:48 +0000 (17:58 -0700)
committerAaron Schulz <aschulz@wikimedia.org>
Thu, 16 Apr 2015 00:58:48 +0000 (17:58 -0700)
Change-Id: I82376561b3c7c15da6fe6374db0245caa5d79ce8

includes/User.php

index 3c2939f..f862953 100644 (file)
@@ -3633,7 +3633,8 @@ class User implements IDBAccessObject {
                if ( !$dbw->affectedRows() ) {
                        // User was changed in the meantime or loaded with stale data
                        MWExceptionHandler::logException( new MWException(
-                               "CAS update failed on user_touched for user ID '{$this->mId}'."
+                               "CAS update failed on user_touched for user ID '{$this->mId}';" .
+                               "the version of the user to be saved is older than the current version."
                        ) );
                        // Maybe the problem was a missed cache update; clear it to be safe
                        $this->clearSharedCache();