fixed api error responses failing to serialize exceptions

This commit is contained in:
MineTec committed 2026-10-14 14:47:59 +02:00
1 parent 6bfb14db2b
commit 097222a565
1 file changed
+1 -1
@@ -79,7 +79,7 @@ public class HttpServer {
try { try {
response = new Response(Response.Status.SUCCESS, null, exec.get()); response = new Response(Response.Status.SUCCESS, null, exec.get());
} catch(Exception e) { } catch(Exception e) {
response = new Response(Response.Status.FAILURE, e, null); response = new Response(Response.Status.FAILURE, e.getMessage(), null);
} }
return HttpServer.this.gson.toJson(response); return HttpServer.this.gson.toJson(response);
} }