Always return the status code from the daemon if possible
This commit is contained in:
parent
c2b1e7e6ab
commit
d644758986
3 changed files with 5 additions and 11 deletions
|
@ -22,7 +22,7 @@ class DaemonConnectionException extends DisplayException
|
|||
* @param \GuzzleHttp\Exception\GuzzleException $previous
|
||||
* @param bool $useStatusCode
|
||||
*/
|
||||
public function __construct(GuzzleException $previous, bool $useStatusCode = false)
|
||||
public function __construct(GuzzleException $previous, bool $useStatusCode = true)
|
||||
{
|
||||
/** @var \GuzzleHttp\Psr7\Response|null $response */
|
||||
$response = method_exists($previous, 'getResponse') ? $previous->getResponse() : null;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue