diff --git a/src/Rzd/Query.php b/src/Rzd/Query.php index 70fc9f9..e80862f 100644 --- a/src/Rzd/Query.php +++ b/src/Rzd/Query.php @@ -75,6 +75,10 @@ public function send($path, array $params = [], $method = 'post'): Curl $this->curl->setCookieJar($cookieFile); $this->run($path, $params, $method); + if ($this->curl->error) { + throw new RuntimeException($this->curl->errorMessage); + } + return $this->curl; }