add libcurl error strings to fetch error messages

This commit is contained in:
ading2210 2024-03-06 17:02:55 -05:00
parent c9236f90d5
commit 155d5ea5b6
8 changed files with 18 additions and 10 deletions

View file

@ -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);
}