From 5a76ba93e31af9a365136e57792055d7cba873a6 Mon Sep 17 00:00:00 2001 From: Pelayori <31128562+Pelayori@users.noreply.github.com> Date: Mon, 29 Apr 2024 01:32:00 +0200 Subject: [PATCH] Fix last issues --- src/main/java/com/uniovi/controllers/PlayersController.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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(); } }