[Author Prev][Author Next][Thread Prev][Thread Next][Author Index][Thread Index]

[tor-commits] [sbws/master] Make 'no destinations' error message point to man page



commit 726fe24a42676166e4df0bd7a333404be7c40c05
Author: Matt Traudt <sirmatt@xxxxxxx>
Date:   Tue Aug 28 14:33:04 2018 -0400

    Make 'no destinations' error message point to man page
---
 sbws/lib/destination.py | 4 +++-
 1 file changed, 3 insertions(+), 1 deletion(-)

diff --git a/sbws/lib/destination.py b/sbws/lib/destination.py
index ed1bc9b..86d76c7 100644
--- a/sbws/lib/destination.py
+++ b/sbws/lib/destination.py
@@ -234,7 +234,9 @@ class DestinationList:
                 conf[dest_sec],
                 conf.getint('scanner', 'max_download_size')))
         if len(dests) < 1:
-            return None, 'No enabled destinations in config'
+            msg = 'No enabled destinations in config. Please see '\
+                '"man sbws.ini" for help adding and enabling destinations'
+            return None, msg
         return DestinationList(conf, dests, circuit_builder, relay_list,
                                controller), ''
 



_______________________________________________
tor-commits mailing list
tor-commits@xxxxxxxxxxxxxxxxxxxx
https://lists.torproject.org/cgi-bin/mailman/listinfo/tor-commits