Skip to content

Commit

Permalink
Merge pull request #1 from TerraSkye/master
Browse files Browse the repository at this point in the history
Dont echo and exit.
  • Loading branch information
bakkerpeter committed Oct 4, 2016
2 parents 42b1afa + 1f11e50 commit 5695633
Showing 1 changed file with 2 additions and 6 deletions.
8 changes: 2 additions & 6 deletions src/app/Client.php
Original file line number Diff line number Diff line change
Expand Up @@ -99,12 +99,8 @@ public function request($path, $data = array(), $method = null) {
'form_params' => $data
));
}
try {
$this->response = new Response($this->getGuzzleClient()->request($this->getMethod($data, $method), $path, $this->additionalHeaders));
} catch (\Exception $e) {
echo $e->getMessage();
exit();
}
$this->response = new Response($this->getGuzzleClient()->request($this->getMethod($data, $method), $path, $this->additionalHeaders));

return $this->response;
}

Expand Down

0 comments on commit 5695633

Please sign in to comment.