preferences: Explicit call User::getName on exception message
Mocks can throw from User::__toString, but exception not allowed there and thus fatal error Change-Id: Ifce2d1ad2bebe6687ce0d37f8b0083deeb288f4e
This commit is contained in:
parent
780ed064d9
commit
c567a2125b
1 changed files with 1 additions and 1 deletions
|
|
@ -295,7 +295,7 @@ class DefaultPreferencesFactory implements PreferencesFactory {
|
|||
} else {
|
||||
$globalDefault = json_encode( $globalDefault );
|
||||
throw new MWException(
|
||||
"Default '$globalDefault' is invalid for preference $name of user $user"
|
||||
"Default '$globalDefault' is invalid for preference $name of user " . $user->getName()
|
||||
);
|
||||
}
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in a new issue