mirror of
https://github.com/ading2210/libcurl.js.git
synced 2025-05-13 14:30:02 -04:00
throw error objects instead of plain strings, update wisp server
This commit is contained in:
parent
3c1a942501
commit
c1b78e1d0c
11 changed files with 16 additions and 15 deletions
|
@ -24,7 +24,7 @@ class CurlSession {
|
|||
|
||||
assert_ready() {
|
||||
if (!this.session_ptr) {
|
||||
throw "session has been removed";
|
||||
throw new Error("session has been removed");
|
||||
}
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue