Skip to content

Commit

Permalink
fix: request error.
Browse files Browse the repository at this point in the history
  • Loading branch information
web3max committed Sep 4, 2023
1 parent d7cb128 commit 19c2490
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions src/tools/JSON-RPC.ts
Original file line number Diff line number Diff line change
Expand Up @@ -28,6 +28,9 @@ export class JSONRPC {
if (res.result.errno) {
throw new DotbitError(res.result.errmsg, res.result.errno)
}
if (res.result.err_msg) {
throw new DotbitError(res.result.err_msg, res.result.err_no)
}

return res.result
})
Expand Down

0 comments on commit 19c2490

Please sign in to comment.