Skip to content

Commit

Permalink
Fixed bug that arises when response is null
Browse files Browse the repository at this point in the history
  • Loading branch information
jenwachter committed Jan 23, 2018
1 parent a940f21 commit 55722a4
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/HttpExchange/Adapters/Guzzle6.php
Original file line number Diff line number Diff line change
Expand Up @@ -145,7 +145,7 @@ protected function createLog($e)
'uri' => (string) $request->getUri(),
'headers' => $request->getHeaders(),
'code' => $response ? $response->getStatusCode() : null,
'full_error' => $response->getBody()->getContents(),
'full_error' => $response ? $response->getBody()->getContents() : null,
'short_error' => $this->getShortError($error)
];

Expand Down

0 comments on commit 55722a4

Please sign in to comment.