diff --git a/li.strolch.rest/src/main/java/li/strolch/rest/helper/ResponseUtil.java b/li.strolch.rest/src/main/java/li/strolch/rest/helper/ResponseUtil.java index bb5a90b01..4b4a1a636 100644 --- a/li.strolch.rest/src/main/java/li/strolch/rest/helper/ResponseUtil.java +++ b/li.strolch.rest/src/main/java/li/strolch/rest/helper/ResponseUtil.java @@ -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();