Negate code as per node docs
This commit is contained in:
parent
aef898ad93
commit
5427ec4844
1 changed files with 1 additions and 1 deletions
|
@ -142,7 +142,7 @@ const exceptionToMeta = function (error) {
|
||||||
const throwRPCError = function (message) {
|
const throwRPCError = function (message) {
|
||||||
const error = new Error(message)
|
const error = new Error(message)
|
||||||
error.code = 'EBADRPC'
|
error.code = 'EBADRPC'
|
||||||
error.errno = 72
|
error.errno = -72
|
||||||
throw error
|
throw error
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue