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
|
@ -23,7 +23,7 @@ class DaemonServerRepository extends DaemonRepository
|
|||
sprintf('/api/servers/%s', $this->server->uuid)
|
||||
);
|
||||
} catch (TransferException $exception) {
|
||||
throw new DaemonConnectionException($exception);
|
||||
throw new DaemonConnectionException($exception, false);
|
||||
}
|
||||
|
||||
return json_decode($response->getBody()->__toString(), true);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue