diff --git a/src/main/java/com/uniovi/controllers/PlayersController.java b/src/main/java/com/uniovi/controllers/PlayersController.java index 94a2c64..0764942 100644 --- a/src/main/java/com/uniovi/controllers/PlayersController.java +++ b/src/main/java/com/uniovi/controllers/PlayersController.java @@ -280,7 +280,7 @@ public String saveQuestions(HttpServletResponse response, @RequestBody String js } catch (Exception e) { response.setStatus(HttpServletResponse.SC_BAD_REQUEST); - return "Invalid JSON"; + return e.getMessage(); } }