diff --git a/src/main/kotlin/de/gmuth/ipp/client/IppOperationException.kt b/src/main/kotlin/de/gmuth/ipp/client/IppOperationException.kt index 16e1be71..b4961393 100644 --- a/src/main/kotlin/de/gmuth/ipp/client/IppOperationException.kt +++ b/src/main/kotlin/de/gmuth/ipp/client/IppOperationException.kt @@ -33,8 +33,8 @@ open class IppOperationException( append("${request.operation} failed") with(response) { append(": '$status'") - if (containsGroup(Operation)) { - if (operationGroup.containsKey("status-message")) append(", $statusMessage") + if (containsGroup(Operation) && operationGroup.containsKey("status-message")) { + append(", $statusMessage") } } toString()