Commit 4cd7bd43 authored by michael.simon's avatar michael.simon
Browse files

remove tag if no error detail is set

parent 42d523d6
......@@ -191,7 +191,10 @@ public class AttributeQueryController {
if (enString != null)
sb.append(enString);
return sb.toString();
if (sb.length() == 0)
return null;
else
return sb.toString();
}
private String resolveString(String key, Locale locale) {
......@@ -350,7 +353,8 @@ public class AttributeQueryController {
response.setErrorList(new ArrayList<RestError>());
RestError restError = new RestError();
restError.setErrorShort(error);
restError.setErrorDetail(errorDetail);
if (errorDetail != null)
restError.setErrorDetail(errorDetail);
response.getErrorList().add(restError);
}
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment