From 3156357dcaf1a0cd22d193578557754dd48bdc68 Mon Sep 17 00:00:00 2001 From: wertmenschen Date: Sat, 6 Oct 2018 01:45:28 +0200 Subject: [PATCH] Don't prevent exception from being thrown. --- src/Models/CamundaModel.php | 9 ++------- 1 file changed, 2 insertions(+), 7 deletions(-) diff --git a/src/Models/CamundaModel.php b/src/Models/CamundaModel.php index 7ceffb3..920f66d 100644 --- a/src/Models/CamundaModel.php +++ b/src/Models/CamundaModel.php @@ -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()); }