Skip to content

Commit e57b2d1

Browse files
committed
Additional logging for QencodeException
1 parent 479d42f commit e57b2d1

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

README.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ PHP library for interacting with the Qencode API.
1313
```json
1414
{
1515
"require": {
16-
"qencode/api-client": "1.12.*"
16+
"qencode/api-client": "1.13.*"
1717
}
1818
}
1919
```

src/QencodeApiClient.php

+1-1
Original file line numberDiff line numberDiff line change
@@ -195,7 +195,7 @@ private function request($method, $path, array $params = [], $arrays = null)
195195
curl_close($curl);
196196

197197
if ($errorNumber) {
198-
throw new QencodeException('CURL: ' . $error, $errorNumber);
198+
throw new QencodeException("CURL request error: {$method} {$url}" . $error, $errorNumber);
199199
}
200200

201201
$this->lastResponse = $response = json_decode($this->lastResponseRaw, true);

0 commit comments

Comments
 (0)