Software / code / verse
Comparison
init.lua @ 124:3659ba3b8dfa
verse: Log error when connection fails instantly
| author | Matthew Wild <mwild1@gmail.com> |
|---|---|
| date | Sun, 12 Sep 2010 17:49:01 +0100 |
| parent | 98:1dccff7df2d5 |
| child | 125:b46921de1e03 |
comparison
equal
deleted
inserted
replaced
| 123:8a079aa70b84 | 124:3659ba3b8dfa |
|---|---|
| 55 return false, err; | 55 return false, err; |
| 56 end | 56 end |
| 57 | 57 |
| 58 local conn = server.wrapclient(conn, connect_host, connect_port, new_listener(self), "*a"); | 58 local conn = server.wrapclient(conn, connect_host, connect_port, new_listener(self), "*a"); |
| 59 if not conn then | 59 if not conn then |
| 60 self:warn("connection initialisation failed: %s", err); | |
| 60 return false, err; | 61 return false, err; |
| 61 end | 62 end |
| 62 | 63 |
| 63 self.conn = conn; | 64 self.conn = conn; |
| 64 local w, t = conn.write, tostring; | 65 local w, t = conn.write, tostring; |