diff --git a/wherehows-frontend/app/controllers/Application.java b/wherehows-frontend/app/controllers/Application.java index d26ddd5565..16acd19407 100644 --- a/wherehows-frontend/app/controllers/Application.java +++ b/wherehows-frontend/app/controllers/Application.java @@ -342,7 +342,8 @@ public class Application extends Controller { try { AuthenticationManager.authenticateUser(username, password); } catch (Exception e) { - return badRequest("Invalid credentials"); + Logger.warn("Authentication error!", e); + return badRequest(e.getMessage()); } // Adds the username to the session cookie