Always return the status code from the daemon if possible

This commit is contained in:
Dane Everitt 2020-07-18 10:23:28 -07:00
parent c2b1e7e6ab
commit d644758986
No known key found for this signature in database
GPG key ID: EEA66103B3D71F53
3 changed files with 5 additions and 11 deletions

View file

@ -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);