summaryrefslogtreecommitdiffstats
path: root/Core
diff options
context:
space:
mode:
Diffstat (limited to 'Core')
-rw-r--r--Core/User/ChainUserProvider.php7
1 files changed, 4 insertions, 3 deletions
diff --git a/Core/User/ChainUserProvider.php b/Core/User/ChainUserProvider.php
index 84aa012..b0556f7 100644
--- a/Core/User/ChainUserProvider.php
+++ b/Core/User/ChainUserProvider.php
@@ -60,15 +60,16 @@ class ChainUserProvider implements UserProviderInterface
} catch (UnsupportedUserException $unsupported) {
// try next one
} catch (UsernameNotFoundException $notFound) {
- // try next one
$supportedUserFound = true;
+ // try next one
}
}
- if ($supportedUserFound)
+ if ($supportedUserFound) {
throw new UsernameNotFoundException(sprintf('There is no user with name "%s".', $user->getUsername()));
- else
+ } else {
throw new UnsupportedUserException(sprintf('The account "%s" is not supported.', get_class($user)));
+ }
}
/**