Commit e86a1ce3277877089b11d6023839316968496725
Improve error handling robustness
cel committed on 3/9/2017, 1:18:28 AMParent: 5e9d9cf82c004fea3f2ef0cca33f1af5674e2402
Files changed
lib/server.js | changed |
lib/server.js | ||
---|---|---|
@@ -157,9 +157,9 @@ | ||
157 | 157 … | resolver.answer(req, res); |
158 | 158 … | }); |
159 | 159 … | |
160 | 160 … | server.on('error', function (msg, error, conn) { |
161 | - console.error(error.stack) | |
161 … | + console.error(error ? error.stack : msg) | |
162 | 162 … | }); |
163 | 163 … | |
164 | 164 … | return server.listen(port, host, cb); |
165 | 165 … | }; |
Built with git-ssb-web