throw error objects instead of plain strings, update wisp server

This commit is contained in:
ading2210 2024-10-02 12:30:48 -04:00
parent 3c1a942501
commit c1b78e1d0c
11 changed files with 16 additions and 15 deletions

View file

@ -70,7 +70,7 @@ function data_to_array(data) {
return new Uint8Array(data.buffer);
}
throw "invalid data type to be sent";
throw new TypeError("invalid data type to be sent");
}
//c function wrapper