[Minor] set msg = exceptionMsg if msg is null

This commit is contained in:
Robert von Burg 2017-10-04 17:33:14 +02:00
parent 45a385920d
commit c69d5ec9a7
1 changed files with 4 additions and 1 deletions

View File

@ -96,8 +96,11 @@ public class ResponseUtil {
Throwable t = svcResult.getThrowable();
if (svcResult.isNok()) {
msg = svcResult.getMessage();
if (t != null)
if (t != null) {
exceptionMsg = StringHelper.formatExceptionMessage(t);
if (StringHelper.isEmpty(msg))
msg = exceptionMsg;
}
}
JsonObject response = new JsonObject();