We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
2 parents 2b1779a + 6ad4de9 commit c6ebf5bCopy full SHA for c6ebf5b
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