Skip to content

Commit

Permalink
Update ProxmoxClient.php
Browse files Browse the repository at this point in the history
  • Loading branch information
sKiLdUsT authored May 9, 2021
1 parent ac8f7ac commit 4e7a8f3
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/ProxmoxApi/ProxmoxClient.php
Original file line number Diff line number Diff line change
Expand Up @@ -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']);
Expand Down

0 comments on commit 4e7a8f3

Please # to comment.