[Minor] set msg = exceptionMsg if msg is null
This commit is contained in:
parent
45a385920d
commit
c69d5ec9a7
|
@ -96,8 +96,11 @@ public class ResponseUtil {
|
||||||
Throwable t = svcResult.getThrowable();
|
Throwable t = svcResult.getThrowable();
|
||||||
if (svcResult.isNok()) {
|
if (svcResult.isNok()) {
|
||||||
msg = svcResult.getMessage();
|
msg = svcResult.getMessage();
|
||||||
if (t != null)
|
if (t != null) {
|
||||||
exceptionMsg = StringHelper.formatExceptionMessage(t);
|
exceptionMsg = StringHelper.formatExceptionMessage(t);
|
||||||
|
if (StringHelper.isEmpty(msg))
|
||||||
|
msg = exceptionMsg;
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
JsonObject response = new JsonObject();
|
JsonObject response = new JsonObject();
|
||||||
|
|
Loading…
Reference in New Issue