Open dwill20 opened 3 years ago
This is a bit hacky but you could do the following to extract the int errorCode from the curl error provided by this library.
errornum, convErr := strconv.Atoi(fmt.Sprintf("%d", err.(curl.CurlError) ))
Sorry this is so late, I just ran into this as well ^_^
I haven't found a way to get cURL error code so far. When using
EasyInit
, it's returning error message string likecurl: Couldn't resolve host name
.But, how to get the cURL error code like the
libcurl
equivalent returns.