diff --git a/README.md b/README.md index 4a7e3c0..2488a7a 100644 --- a/README.md +++ b/README.md @@ -13,7 +13,7 @@ PHP library for interacting with the Qencode API. ```json { "require": { - "qencode/api-client": "1.12.*" + "qencode/api-client": "1.13.*" } } ``` diff --git a/src/QencodeApiClient.php b/src/QencodeApiClient.php index ec89eb0..5941546 100755 --- a/src/QencodeApiClient.php +++ b/src/QencodeApiClient.php @@ -195,7 +195,7 @@ private function request($method, $path, array $params = [], $arrays = null) curl_close($curl); if ($errorNumber) { - throw new QencodeException('CURL: ' . $error, $errorNumber); + throw new QencodeException("CURL request error: {$method} {$url}" . $error, $errorNumber); } $this->lastResponse = $response = json_decode($this->lastResponseRaw, true);