mirror of
https://github.com/ading2210/libcurl.js.git
synced 2025-05-13 14:30:02 -04:00
add libcurl error strings to fetch error messages
This commit is contained in:
parent
c9236f90d5
commit
155d5ea5b6
8 changed files with 18 additions and 10 deletions
|
@ -34,4 +34,8 @@ char* get_version() {
|
|||
char* version_json_str = cJSON_Print(version_json);
|
||||
cJSON_Delete(version_json);
|
||||
return version_json_str;
|
||||
}
|
||||
|
||||
const char* get_error_str(CURLcode error_code) {
|
||||
return curl_easy_strerror(error_code);
|
||||
}
|
Loading…
Add table
Add a link
Reference in a new issue