Skip to content

Commit 3e67d00

Browse files
wouterjnicolas-grekas
authored andcommitted
Improved error message when no supported user provider is found
1 parent 2d9796e commit 3e67d00

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

User/ChainUserProvider.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -91,7 +91,7 @@ public function refreshUser(UserInterface $user)
9191
$e->setUsername($user->getUsername());
9292
throw $e;
9393
} else {
94-
throw new UnsupportedUserException(sprintf('The account "%s" is not supported.', \get_class($user)));
94+
throw new UnsupportedUserException(sprintf('There is no user provider for user "%s". Shouldn\'t the "supportsClass()" method of your user provider return true for this classname?', \get_class($user)));
9595
}
9696
}
9797

0 commit comments

Comments
 (0)