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,6 +34,11 @@ function allocate_array(array) {
return allocate(array, ALLOC_NORMAL);
}
function get_error_str(error_code) {
let error_ptr = _get_error_str(error_code);
return UTF8ToString(error_ptr);
}
//convert any data to a uint8array
async function data_to_array(data) {
let data_array = null;