From 53403d98d1db85d18d321abed94809ef5e0740d9 Mon Sep 17 00:00:00 2001
From: juga0 <juga@riseup.net>
Date: Fri, 6 Apr 2018 14:04:44 +0000
Subject: [PATCH] Give more information about where is the server password
 expected

---
 sbws/commands/server.py | 6 +++++-
 1 file changed, 5 insertions(+), 1 deletion(-)

diff --git a/sbws/commands/server.py b/sbws/commands/server.py
index 7faddb2b..6978e87a 100644
--- a/sbws/commands/server.py
+++ b/sbws/commands/server.py
@@ -129,7 +129,11 @@ def main(args, conf, log_):
         fail_hard('Sbws isn\'t initialized. Try sbws init', log=log)
 
     if len(conf['server.passwords']) < 1:
-        fail_hard('Sbws server needs at least one password', log=log)
+        fail_hard('Sbws server needs at least one passwordin the section'\
+                  ' [server.passwords] in the config file in',
+                   conf.get('sbws_home'),
+                   '.See doc/XX for more information on the configuration.',
+                    log=log)
 
     server = socket.socket(socket.AF_INET, socket.SOCK_STREAM)
     h = (conf['server']['bind_ip'], conf.getint('server', 'bind_port'))
-- 
GitLab