summaryrefslogtreecommitdiff
path: root/src/net.h
diff options
context:
space:
mode:
Diffstat (limited to 'src/net.h')
-rw-r--r--src/net.h4
1 files changed, 3 insertions, 1 deletions
diff --git a/src/net.h b/src/net.h
index 47f6967c6..6c641be37 100644
--- a/src/net.h
+++ b/src/net.h
@@ -6,6 +6,8 @@
#include <v8.h>
#include <evnet.h>
+#include <string.h>
+
namespace node {
class Server;
@@ -95,7 +97,7 @@ private:
connection->OnDisconnect();
if (s->errorno) {
- printf("socket died with error %d\n", s->errorno);
+ printf("socket died: %s\n", strerror(s->errorno));
}
assert(connection->attached_);