]> git.ipfire.org Git - thirdparty/tor.git/commitdiff
Fix messages for _UNRECOGNIZED tokens
authorNick Mathewson <nickm@torproject.org>
Tue, 28 Sep 2004 22:35:02 +0000 (22:35 +0000)
committerNick Mathewson <nickm@torproject.org>
Tue, 28 Sep 2004 22:35:02 +0000 (22:35 +0000)
svn:r2390

src/or/routerparse.c

index 8f87872aee8b4023e738803df9fdbf56572733ff..20572545f9edd447d557a10a25a5a820a143eb6b 100644 (file)
@@ -354,7 +354,7 @@ router_parse_routerlist_from_directory(const char *str,
     log_fn(LOG_WARN, "Impossibly short directory header"); goto err;
   }
   if ((tok = find_first_by_keyword(tokens, _UNRECOGNIZED))) {
-    log_fn(LOG_WARN, "Unrecognized keyword in \"%s\"; can't parse directory.",
+    log_fn(LOG_WARN, "Unrecognized keyword \"%s\" in directory header; can't parse directory.",
            tok->args[0]);
     goto err;
   }
@@ -468,7 +468,7 @@ router_parse_runningrouters(const char *str)
     log_fn(LOG_WARN, "Error tokenizing directory"); goto err;
   }
   if ((tok = find_first_by_keyword(tokens, _UNRECOGNIZED))) {
-    log_fn(LOG_WARN, "Unrecognized keyword in \"%s\"; can't parse directory.",
+    log_fn(LOG_WARN, "Unrecognized keyword \"%s\"; can't parse running-routers",
            tok->args[0]);
     goto err;
   }
@@ -662,7 +662,7 @@ routerinfo_t *router_parse_entry_from_string(const char *s,
     goto err;
   }
   if ((tok = find_first_by_keyword(tokens, _UNRECOGNIZED))) {
-    log_fn(LOG_WARN, "Unrecognized keyword in \"%s\"; skipping descriptor.",
+    log_fn(LOG_WARN, "Unrecognized keyword \"%s\"; skipping descriptor.",
            tok->args[0]);
     goto err;
   }