diff options
author | Ryan <ry@tinyclouds.org> | 2009-07-15 17:52:11 +0200 |
---|---|---|
committer | Ryan <ry@tinyclouds.org> | 2009-07-15 17:52:11 +0200 |
commit | 0292dea847920c728e7b0c51eef8e938c6da52fa (patch) | |
tree | 7a26a878cef2cbfc6b85f2b217042872b77bebe8 | |
parent | 1b6bbc619dcaf5f97a2a18f29adf2e0146222640 (diff) | |
download | nodejs-0292dea847920c728e7b0c51eef8e938c6da52fa.tar.gz nodejs-0292dea847920c728e7b0c51eef8e938c6da52fa.tar.bz2 nodejs-0292dea847920c728e7b0c51eef8e938c6da52fa.zip |
Better error output for socket errors. Temporary.
-rw-r--r-- | src/net.h | 4 |
1 files changed, 3 insertions, 1 deletions
@@ -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_); |