Commit bf2d70e2 by Vladislav

fix

1 parent 724f324c
Showing with 3 additions and 2 deletions
......@@ -13,9 +13,10 @@ class DirectHandler extends AdsHandler
$this->response = $response->json();
}
public function checkError($response){
public function checkError($response)
{
$this->parse($response);
if ($this->response['error']){
if ($this->response['error'] ?? false) {
throw new \Exception($this->response['error']['error_detail']);
}
}
......
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!