Minor bugfix to correct error handling. (#1260)

This commit is contained in:
Clifton
2018-01-25 22:20:23 -08:00
committed by Nikolay Igotti
parent af9c749035
commit df41389ef7
@@ -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() {