Improve exception reporting - refs #3145 (#3146)

Include the exception name with the message returned to the user.
This commit is contained in:
Tom Morris 2020-09-06 02:26:49 -04:00 committed by GitHub
parent a86a6d4e3b
commit 15a069d3d5
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -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();