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

pastly at torproject.org pastly at torproject.org
Wed Sep 5 19:44:54 UTC 2018


commit 726fe24a42676166e4df0bd7a333404be7c40c05
Author: Matt Traudt <sirmatt at ksu.edu>
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), ''
 





More information about the tor-commits mailing list