Set errno on RPC error

This commit is contained in:
Kevin Sawicki 2016-11-17 10:09:29 -08:00
parent c05ca68811
commit aef898ad93

View file

@ -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
}