diff --git a/hsarjcli/src/de/hsadmin/cli/HSadmin.java b/hsarjcli/src/de/hsadmin/cli/HSadmin.java index 2b9dd37..47f3191 100644 --- a/hsarjcli/src/de/hsadmin/cli/HSadmin.java +++ b/hsarjcli/src/de/hsadmin/cli/HSadmin.java @@ -269,10 +269,8 @@ public class HSadmin { + "\n--- end of args. ---"); httpReq.setRequestData(argsAsString.toString()); int code = httpReq.put(); - List hsadminErrors = httpReq - .getResponseHeader("X-hsadmin-error"); - if (hsadminErrors != null && hsadminErrors.size() > 0 - && hsadminErrors.get(0) != null) { + List hsadminErrors = httpReq.getResponseHeader("X-hsadmin-error"); + if (hsadminErrors != null && hsadminErrors.size() > 0 && hsadminErrors.get(0) != null) { throw new RuntimeException(hsadminErrors.get(0)); } else {