Navigation Menu

Skip to content

Commit

Permalink
Report error message if the error has "message" property
Browse files Browse the repository at this point in the history
  • Loading branch information
piroor committed Jun 20, 2013
1 parent 816c552 commit 78ef532
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/frontend/socket.io-adaptor.js
Expand Up @@ -47,7 +47,7 @@ exports.register = function(application, server, params) {
event = result[0];
data = result[1];
} catch(error) {
socket.emit('error', error);
socket.emit('error', error.message || error);
return;
}
}
Expand Down

0 comments on commit 78ef532

Please sign in to comment.