[tor-commits] [tor/master] Improve error message when all permitted Exits are down

nickm at torproject.org nickm at torproject.org
Thu Jun 22 12:04:18 UTC 2017


commit 9d59769db78fd5703935291b83c52ede4b556389
Author: Nick Mathewson <nickm at torproject.org>
Date:   Tue May 30 10:59:04 2017 -0400

    Improve error message when all permitted Exits are down
    
    The old "No specified non-excluded exit routers seem to be running"
    message was somewhat confusing.
    
    Fix for 7890.
---
 changes/bug7890       | 4 ++++
 src/or/circuitbuild.c | 5 +++--
 2 files changed, 7 insertions(+), 2 deletions(-)

diff --git a/changes/bug7890 b/changes/bug7890
new file mode 100644
index 0000000..1daec58
--- /dev/null
+++ b/changes/bug7890
@@ -0,0 +1,4 @@
+  o Minor bugfixes (logging):
+    - Use a more comprehensible log message when telling the user they've
+      excluded every running exit node. Fixes bug 7890; bugfix on
+      0.2.2.25-alpha.
diff --git a/src/or/circuitbuild.c b/src/or/circuitbuild.c
index 16cef0e..240c64b 100644
--- a/src/or/circuitbuild.c
+++ b/src/or/circuitbuild.c
@@ -1956,9 +1956,10 @@ choose_good_exit_server_general(int need_uptime, int need_capacity)
   }
   if (options->ExitNodes) {
     log_warn(LD_CIRC,
-             "No specified %sexit routers seem to be running: "
+             "No exits in ExitNodes%s seem to be running: "
              "can't choose an exit.",
-             options->ExcludeExitNodesUnion_ ? "non-excluded " : "");
+             options->ExcludeExitNodesUnion_ ?
+             ", except possibly those excluded by your configuration, " : "");
   }
   return NULL;
 }





More information about the tor-commits mailing list