Skip to content

Commit

Permalink
Updated guzzle connection exception messages
Browse files Browse the repository at this point in the history
  • Loading branch information
M1ke committed Sep 8, 2016
1 parent ed412da commit f0aa4f8
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/SendHouses.php
Original file line number Diff line number Diff line change
Expand Up @@ -76,11 +76,11 @@ public function send(){
$output = json_decode($output, true);
throw new Exception($output['Message']);
}
throw new Exception('The StuRents API could not be reached.', self::EX_CODE_RESPONSE);
throw new Exception("The StuRents API could not be reached. The client reported: {$e->getMessage()}", self::EX_CODE_RESPONSE);
}
catch (GuzzleException $e) {
$this->request_exception = $e;
throw new Exception('The StuRents API could not be reached.', self::EX_CODE_RESPONSE);
throw new Exception("The StuRents API could not be reached. The connection reported: {$e->getMessage()}", self::EX_CODE_RESPONSE);
}
}

Expand Down

0 comments on commit f0aa4f8

Please sign in to comment.