Minor bugfix to correct error handling. (#1260)
This commit is contained in:
@@ -30,7 +30,7 @@ class CUrl(val url: String) {
|
|||||||
fun fetch() {
|
fun fetch() {
|
||||||
val res = curl_easy_perform(curl)
|
val res = curl_easy_perform(curl)
|
||||||
if (res != CURLE_OK)
|
if (res != CURLE_OK)
|
||||||
println("curl_easy_perform() failed: ${curl_easy_strerror(res)}")
|
println("curl_easy_perform() failed: ${curl_easy_strerror(res)?.toKString()}")
|
||||||
}
|
}
|
||||||
|
|
||||||
fun close() {
|
fun close() {
|
||||||
|
|||||||
Reference in New Issue
Block a user