Skip to content

Commit

Permalink
Merge pull request #660 from Kenny-House/rpc-decode-error
Browse files Browse the repository at this point in the history
Changes callback on failed response decode in rpc service
  • Loading branch information
dcodeIO committed Jan 26, 2017
2 parents b6cf228 + aab3ec1 commit de89035
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 de89035

Please sign in to comment.