projects
/
platform
/
upstream
/
nodejs.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
86fba38
)
Dgram: correctly report recvmsg errors
author
Bert Belder
<bertbelder@gmail.com>
Thu, 24 Nov 2011 16:00:53 +0000
(17:00 +0100)
committer
Bert Belder
<bertbelder@gmail.com>
Thu, 24 Nov 2011 18:11:13 +0000
(19:11 +0100)
lib/dgram.js
patch
|
blob
|
history
diff --git
a/lib/dgram.js
b/lib/dgram.js
index
4356447
..
26e0a2a
100644
(file)
--- a/
lib/dgram.js
+++ b/
lib/dgram.js
@@
-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