improve error message when daemon is already running
This commit is contained in:
parent
1e47ff5a83
commit
03415415ed
1 changed files with 2 additions and 2 deletions
|
@ -218,8 +218,8 @@ class AuthJSONRPCServer(AuthorizedBase):
|
||||||
yield self.setup()
|
yield self.setup()
|
||||||
self.analytics_manager.send_server_startup_success()
|
self.analytics_manager.send_server_startup_success()
|
||||||
except tx_error.CannotListenError:
|
except tx_error.CannotListenError:
|
||||||
log.error('lbrynet API failed to bind TCP %s:%i for listening', conf.settings['api_host'],
|
log.error('lbrynet API failed to bind TCP %s:%i for listening. Daemon is already running or this port is '
|
||||||
conf.settings['api_port'])
|
'already in use by another application.', conf.settings['api_host'], conf.settings['api_port'])
|
||||||
reactor.fireSystemEvent("shutdown")
|
reactor.fireSystemEvent("shutdown")
|
||||||
except defer.CancelledError:
|
except defer.CancelledError:
|
||||||
log.info("shutting down before finished starting")
|
log.info("shutting down before finished starting")
|
||||||
|
|
Loading…
Reference in a new issue