Skip to content

Commit ed8ccad

Browse files
authored
Return just propertyName in the exception
Signed-off-by: Lukas Reschke <lukas@statuscode.ch>
1 parent 2ba7ab0 commit ed8ccad

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

lib/private/Accounts/AccountManager.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -148,7 +148,7 @@ public function updateUser(IUser $user, array $data, bool $throwOnData = false):
148148
foreach ($data as $propertyName => $propertyData) {
149149
if (isset($data[$propertyName]) && isset($data[$propertyName]['value']) && strlen($data[$propertyName]['value']) > 2048) {
150150
if ($throwOnData) {
151-
throw new \InvalidArgumentException($propertyName . ' is too long');
151+
throw new \InvalidArgumentException($propertyName);
152152
} else {
153153
$data[$propertyName]['value'] = '';
154154
}

0 commit comments

Comments
 (0)