Closed j-q-arnold closed 4 years ago
EADDRINUSE
suggests you already have some program listening on port 8080
anything from lsof -i :8080
?
I guess my point is more that reslang
should deal with the issue itself. If it is trying to start a webserver, the user doesn't really need an error message if the webserver is already running.
$ lsof -i :8080
COMMAND PID USER FD TYPE DEVICE SIZE/OFF NODE NAME
node 11216 jaarno 21u IPv6 0x15f31074f7ea0bf9 0t0 TCP *:http-alt (LISTEN)
reslang needs to start up a redoc server, so some sort of error is needed.
feel free to submit a patch for a more graceful error, or alternatively suggest a different outcome you'd like to see
now prints out the error: "Cannot start Redoc server on port 8080 - please check you don't have another server running" if the redoc server has a problem
Running
reslang
got the following error. Still opened a browser window, but this seems wrong.