Skip to content

Commit

Permalink
Don't prevent exception from being thrown.
Browse files Browse the repository at this point in the history
  • Loading branch information
wertmenschen authored Oct 5, 2018
1 parent d69b92f commit 3156357
Showing 1 changed file with 2 additions and 7 deletions.
9 changes: 2 additions & 7 deletions src/Models/CamundaModel.php
Original file line number Diff line number Diff line change
Expand Up @@ -52,13 +52,8 @@ protected function get($url)
private function request($url, $method, $data = [])
{
$data['auth'] = [config('camunda.api.auth.user'), config('camunda.api.auth.password')];

try {
$response = $this->client->{$method}($this->buildUrl($url), $data);
}
catch (ServerException $e) {
dd(json_decode($e->getResponse()->getBody()->getContents()));
}

$response = $this->client->{$method}($this->buildUrl($url), $data);
return json_decode($response->getBody());
}

Expand Down

0 comments on commit 3156357

Please sign in to comment.