Skip to content

Commit d905655

Browse files
fix: minor bugs
1 parent ecebf37 commit d905655

File tree

1 file changed

+1
-3
lines changed

1 file changed

+1
-3
lines changed

src/Core/Errors/APIStatusError.php

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -22,9 +22,7 @@ public function __construct(
2222
$this->response = $response;
2323
$this->status = $response->getStatusCode();
2424

25-
$summary = 'Status: '.$this->status.PHP_EOL
26-
.'Response Body: '.Util::prettyEncodeJson(Util::decodeJson($response->getBody())).PHP_EOL
27-
.'Request Body: '.Util::prettyEncodeJson(Util::decodeJson($request->getBody())).PHP_EOL;
25+
$summary = Util::prettyEncodeJson(['status' => $this->status, 'body' => Util::decodeJson($response->getBody())]);
2826

2927
if ('' != $message) {
3028
$summary .= $message.PHP_EOL.$summary;

0 commit comments

Comments
 (0)