Permalink
Browse files

Dgram: correctly report recvmsg errors

  • Loading branch information...
1 parent 86fba38 commit 83152d174cbba36f967cab775260262d98706475 @piscisaureus piscisaureus committed Nov 24, 2011
Showing with 1 addition and 1 deletion.
  1. +1 −1 lib/dgram.js
View
@@ -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

0 comments on commit 83152d1

Please sign in to comment.