Set errno on RPC error
This commit is contained in:
parent
c05ca68811
commit
aef898ad93
1 changed files with 1 additions and 0 deletions
|
@ -142,6 +142,7 @@ const exceptionToMeta = function (error) {
|
|||
const throwRPCError = function (message) {
|
||||
const error = new Error(message)
|
||||
error.code = 'EBADRPC'
|
||||
error.errno = 72
|
||||
throw error
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue