fixed api error responses failing to serialize exceptions
This commit is contained in:
1 parent
6bfb14db2b
commit
097222a565
1 file changed
+1
-1
@@ -79,7 +79,7 @@ public class HttpServer {
|
||||
try {
|
||||
response = new Response(Response.Status.SUCCESS, null, exec.get());
|
||||
} 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);
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user