Include the exception name with the message returned to the user.
This commit is contained in:
parent
a86a6d4e3b
commit
15a069d3d5
@ -367,7 +367,7 @@ public abstract class Command {
|
||||
JsonGenerator writer = ParsingUtilities.mapper.getFactory().createGenerator(w);
|
||||
writer.writeStartObject();
|
||||
writer.writeStringField("code", "error");
|
||||
writer.writeStringField("message", e.getMessage());
|
||||
writer.writeStringField("message", e.toString());
|
||||
writer.writeStringField("stack", sw.toString());
|
||||
writer.writeEndObject();
|
||||
writer.flush();
|
||||
|
Loading…
Reference in New Issue
Block a user