Extend error information in json output for received messages from untrusted identity

Fixes #91
This commit is contained in:
AsamK 2021-08-22 19:28:13 +02:00
parent 4f67ac674b
commit 9a9dd3b217
3 changed files with 18 additions and 2 deletions

View file

@ -28,8 +28,9 @@ public class JsonReceiveMessageHandler implements Manager.ReceiveMessageHandler
if (exception != null) {
object.put("error", new JsonError(exception));
}
if (envelope != null) {
object.put("envelope", new JsonMessageEnvelope(envelope, content, m));
object.put("envelope", new JsonMessageEnvelope(envelope, content, exception, m));
}
jsonWriter.write(object);