From 84c201f66586e4b527c2cc56276bb6b43f1c552c Mon Sep 17 00:00:00 2001 From: Neil Booth Date: Sat, 25 Mar 2017 10:43:14 +0900 Subject: [PATCH] Improve diagnostic --- server/env.py | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/server/env.py b/server/env.py index dcaaad2..bbba097 100644 --- a/server/env.py +++ b/server/env.py @@ -78,9 +78,10 @@ class Env(LoggedClass): '' ) if not main_identity.host.strip(): - raise self.Error('IRC host is empty') + raise self.Error('REPORT_HOST host is empty') if main_identity.tcp_port == main_identity.ssl_port: - raise self.Error('IRC TCP and SSL ports are the same') + raise self.Error('REPORT_TCP_PORT and REPORT_SSL_PORT are both {}' + .format(main_identity.tcp_port)) self.identities = [main_identity] tor_host = self.default('REPORT_HOST_TOR', '')