diff --git a/config/packages/sentry.yaml b/config/packages/sentry.yaml index babb935..ef371d1 100644 --- a/config/packages/sentry.yaml +++ b/config/packages/sentry.yaml @@ -7,5 +7,4 @@ sentry: - 'Symfony\Component\HttpKernel\Exception\AccessDeniedHttpException' - 'Symfony\Component\Debug\Exception\FatalErrorException' - 'RuntimeException' - - 'Symfony\Component\Console\Exception\RuntimeException' - - + - 'Symfony\Component\Console\Exception\RuntimeException' diff --git a/src/Security/OAuthAuthenticator.php b/src/Security/OAuthAuthenticator.php index 0b1b688..d2109e4 100644 --- a/src/Security/OAuthAuthenticator.php +++ b/src/Security/OAuthAuthenticator.php @@ -56,7 +56,7 @@ public function checkCredentials($credentials, UserInterface $user) public function onAuthenticationFailure(Request $request, AuthenticationException $exception) { - return new JsonResponse(array("code" => 400, "message" => "Incorrect Information"), 400); + return new JsonResponse(array("code" => 400, "message" => $exception->getMessage()), 400); } public function onAuthenticationSuccess(Request $request, TokenInterface $token, $providerKey)