Browse Source

Instead of "Network down", say "Is your network connection down?"

svn:r5607
Nick Mathewson 20 years ago
parent
commit
6b5fc9d46f
2 changed files with 4 additions and 2 deletions
  1. 2 1
      src/or/main.c
  2. 2 1
      src/or/routerlist.c

+ 2 - 1
src/or/main.c

@@ -513,7 +513,8 @@ directory_all_unreachable(time_t now)
 
 
   while ((conn = connection_get_by_type_state(CONN_TYPE_AP,
   while ((conn = connection_get_by_type_state(CONN_TYPE_AP,
                                               AP_CONN_STATE_CIRCUIT_WAIT))) {
                                               AP_CONN_STATE_CIRCUIT_WAIT))) {
-    notice(LD_NET,"Network down? Failing connection to '%s:%d'.",
+    notice(LD_NET,
+           "Is your network connection down? Failing connection to '%s:%d'.",
            safe_str(conn->socks_request->address), conn->socks_request->port);
            safe_str(conn->socks_request->address), conn->socks_request->port);
     connection_mark_unattached_ap(conn, END_STREAM_REASON_NET_UNREACHABLE);
     connection_mark_unattached_ap(conn, END_STREAM_REASON_NET_UNREACHABLE);
   }
   }

+ 2 - 1
src/or/routerlist.c

@@ -3343,7 +3343,8 @@ router_have_minimum_dir_info(void)
   if (!res && have_enough) {
   if (!res && have_enough) {
     log(LOG_NOTICE, LD_DIR,"Our directory information is no longer up-to-date "
     log(LOG_NOTICE, LD_DIR,"Our directory information is no longer up-to-date "
         "enough to build circuits.%s",
         "enough to build circuits.%s",
-        any_running ? "" : " (All servers seem down -- network down?)");
+        any_running ? "" :
+        " (No servers seem reachable -- is your network connection down?)");
   }
   }
   have_enough = res;
   have_enough = res;
   return res;
   return res;