From 03415415ed397730e6f691f527f51b429a834ed5 Mon Sep 17 00:00:00 2001 From: Victor Shyba Date: Tue, 18 Sep 2018 18:29:44 -0300 Subject: [PATCH] improve error message when daemon is already running --- lbrynet/daemon/auth/server.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/lbrynet/daemon/auth/server.py b/lbrynet/daemon/auth/server.py index cc426f179..c1aaf26a3 100644 --- a/lbrynet/daemon/auth/server.py +++ b/lbrynet/daemon/auth/server.py @@ -218,8 +218,8 @@ class AuthJSONRPCServer(AuthorizedBase): yield self.setup() self.analytics_manager.send_server_startup_success() except tx_error.CannotListenError: - log.error('lbrynet API failed to bind TCP %s:%i for listening', conf.settings['api_host'], - conf.settings['api_port']) + log.error('lbrynet API failed to bind TCP %s:%i for listening. Daemon is already running or this port is ' + 'already in use by another application.', conf.settings['api_host'], conf.settings['api_port']) reactor.fireSystemEvent("shutdown") except defer.CancelledError: log.info("shutting down before finished starting")