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,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;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue