diff --git a/src/ProxmoxApi/ProxmoxClient.php b/src/ProxmoxApi/ProxmoxClient.php index a0fa5dc..8af650f 100644 --- a/src/ProxmoxApi/ProxmoxClient.php +++ b/src/ProxmoxApi/ProxmoxClient.php @@ -143,7 +143,7 @@ public function request($method, $action, array $params = []) } if($headers['status']['code'] >= 400) { - throw new ProxmoxApiException(substr($resp, $info['header_size']) ?? $headers['status']['msg'], $headers['status']['code']); + throw new ProxmoxApiException($headers['status']['code'] . ' ' . $headers['status']['msg'] . ': ' . substr($resp, $info['header_size']), $headers['status']['code']); } $body = substr($resp, $info['header_size']);