Skip to content

Commit

Permalink
better execption handling
Browse files Browse the repository at this point in the history
  • Loading branch information
stephenafamo committed Jan 28, 2017
1 parent a3441dd commit 419e1f2
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/MoneywaveApiClient.php
Original file line number Diff line number Diff line change
Expand Up @@ -53,7 +53,7 @@ public function dispatch($method = "POST")
$this->status = $this->response["status"];
} catch (RequestException $e) {
$this->responseCode = $e->getCode();
$this->response = $e->getResponse();
$this->response = json_decode($e->getResponse()->getBody(), true);
$this->status = $e->getMessage();
}
}
Expand Down

0 comments on commit 419e1f2

Please sign in to comment.