Skip to content

Commit

Permalink
Changes callback on failed response decode in rpc service to pass act…
Browse files Browse the repository at this point in the history
…ual error instead of 'error' string
  • Loading branch information
kenny-house committed Jan 26, 2017
1 parent b6cf228 commit aab3ec1
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/rpc/service.js
Original file line number Diff line number Diff line change
Expand Up @@ -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);
}
}

Expand Down

0 comments on commit aab3ec1

Please sign in to comment.