Various bugfixes and code clean up.

This commit is contained in:
James Cole
2018-07-27 04:46:21 +02:00
parent 2ad8e7f343
commit 0312ba8ad7
60 changed files with 223 additions and 353 deletions

View File

@@ -250,7 +250,7 @@ abstract class SpectreRequest
$client = new Client;
$res = $client->request('POST', $fullUri, ['headers' => $headers, 'body' => $body]);
} catch (GuzzleException|Exception $e) {
throw new FireflyException(sprintf('Request Exception: %s', $e->getMessage()));
throw new FireflyException(sprintf('Guzzle Exception: %s', $e->getMessage()));
}
$body = $res->getBody()->getContents();
$statusCode = $res->getStatusCode();