Skip to content

Commit

Permalink
Dgram: correctly report recvmsg errors
Browse files Browse the repository at this point in the history
  • Loading branch information
piscisaureus committed Nov 24, 2011
1 parent 86fba38 commit 83152d1
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/dgram.js
Original file line number Diff line number Diff line change
Expand Up @@ -300,7 +300,7 @@ function onMessage(handle, nread, buf, rinfo) {
var self = handle.socket;

if (nread == -1) {
self.emit('error', errnoException('recvmsg'));
self.emit('error', errnoException(errno, 'recvmsg'));
}
else {
rinfo.size = buf.length; // compatibility
Expand Down

0 comments on commit 83152d1

Please sign in to comment.