Permalink
Browse files

Changes callback on failed response decode in rpc service to pass act…

…ual error instead of 'error' string
  • Loading branch information...
kenny-house committed Jan 26, 2017
1 parent b6cf228 commit aab3ec1a757aff0f11402c3fb943c003f092c1af
Showing with 1 addition and 1 deletion.
  1. +1 −1 src/rpc/service.js
@@ -118,7 +118,7 @@ Service.prototype.rpcCall = function rpcCall(method, requestCtor, responseCtor,
response = responseCtor[self.responseDelimited ? "decodeDelimited" : "decode"](response);
} catch (err) {
self.emit("error", err, method);
return callback("error", err);
return callback(err);
}
}

0 comments on commit aab3ec1

Please sign in to comment.