Better error output for socket errors. Temporary.

v0.7.4-release
Ryan 2009-07-15 17:52:11 +02:00
parent 1b6bbc619d
commit 0292dea847
1 changed files with 3 additions and 1 deletions

View File

@ -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_);