Kaydet (Commit) 52c979b9 authored tarafından mertcelen's avatar mertcelen

Better error handling of connectors.

üst 4e24201e
......@@ -117,8 +117,8 @@ class GenericConnector
]
);
return $response->getBody()->getContents();
} catch (GuzzleException $exception) {
return $exception->getMessage();
} catch (\Exception $exception) {
abort(504,$exception->getMessage());
}
$json = json_decode((string) $res->getBody());
return $json->output;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment