From aef898ad93b2e7a009c83a61171f139682707af5 Mon Sep 17 00:00:00 2001 From: Kevin Sawicki Date: Thu, 17 Nov 2016 10:09:29 -0800 Subject: [PATCH] Set errno on RPC error --- lib/browser/rpc-server.js | 1 + 1 file changed, 1 insertion(+) diff --git a/lib/browser/rpc-server.js b/lib/browser/rpc-server.js index 03eed56de911..c61329da9e5b 100644 --- a/lib/browser/rpc-server.js +++ b/lib/browser/rpc-server.js @@ -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 }