Support Curl Error Buffer

Allow user to get error message when download fails
This commit is contained in:
Ten10 authored and Howard Hinnant committed 2019-11-29 19:38:40 -05:00
1 parent 018a50bcd0
commit 940f4a5ceb
2 files changed
+8 -5

No files matched your search

+2 -1
View File
@@ -1314,7 +1314,8 @@ DATE_API void set_install(const std::string& install);
#if HAS_REMOTE_API
DATE_API std::string remote_version();
DATE_API bool remote_download(const std::string& version);
// if provided error_buffer size should be at least CURL_ERROR_SIZE
DATE_API bool remote_download(const std::string& version, char* error_buffer = nullptr);
DATE_API bool remote_install(const std::string& version);
#endif