The bug was in the error checking logic which I’ve...
# kotlin-native
c
The bug was in the error checking logic which I’ve changed to this:
Copy code
result = curl_easy_perform(curl);
if(result != CURLE_OK) {
val emsg = curl_easy_strerror(result);
println("Error performing CURL download: ${emsg?.toKString()}");
return;
}