Skip to content

Commit

Permalink
Additional logging for QencodeException
Browse files Browse the repository at this point in the history
  • Loading branch information
qencode-dev committed Jan 16, 2024
1 parent 479d42f commit e57b2d1
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ PHP library for interacting with the Qencode API.
```json
{
"require": {
"qencode/api-client": "1.12.*"
"qencode/api-client": "1.13.*"
}
}
```
Expand Down
2 changes: 1 addition & 1 deletion src/QencodeApiClient.php
Original file line number Diff line number Diff line change
Expand Up @@ -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);
Expand Down

0 comments on commit e57b2d1

Please sign in to comment.