Skip to content

Commit

Permalink
Properly serialize Error message in RPC response.
Browse files Browse the repository at this point in the history
  • Loading branch information
reid committed Oct 9, 2012
1 parent 5d2d5be commit 2cc8082
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/blizzard/session.js
Original file line number Diff line number Diff line change
Expand Up @@ -553,7 +553,7 @@ BlizzardSession.prototype.onMessage = function (id, message) {
// appended to the arguments list of the remote function.
function requestCompleter(error, reply) {
if (error) {
self.emit("fail", id, BlizzardSession.ERROR_USER, error);
self.emit("fail", id, BlizzardSession.ERROR_USER, error.message || error);
} else if (id) {
self.reply(id, reply);
}
Expand Down

0 comments on commit 2cc8082

Please sign in to comment.