We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 2b1779a commit 6ad4de9Copy full SHA for 6ad4de9
1 file changed
src/ECB.php
@@ -73,8 +73,9 @@ private static function fetch(string $url): string
73
return $data;
74
}
75
76
+ $curl_error = curl_error($ch);
77
curl_close($ch);
78
- throw new ECBException(curl_error($ch), ECBException::DATA_DOWNLOAD_FAILED);
79
+ throw new ECBException($curl_error, ECBException::DATA_DOWNLOAD_FAILED);
80
81
0 commit comments