]> git.ipfire.org Git - thirdparty/tor.git/commitdiff
Fix error message in do_dump_config().
authorrl1987 <rl1987@sdf.lonestar.org>
Mon, 6 Apr 2015 18:01:43 +0000 (21:01 +0300)
committerrl1987 <rl1987@sdf.lonestar.org>
Mon, 6 Apr 2015 18:01:43 +0000 (21:01 +0300)
src/or/main.c

index a816fad2bb10036517fa9b2d105639376edd86a4..c0ca1584a3975f293cbe848dd5fbd6cce32aad0a 100644 (file)
@@ -2803,6 +2803,7 @@ do_dump_config(void)
   const char *arg = options->command_arg;
   int how;
   char *opts;
+
   if (!strcmp(arg, "short")) {
     how = OPTIONS_DUMP_MINIMAL;
   } else if (!strcmp(arg, "non-builtin")) {
@@ -2810,8 +2811,9 @@ do_dump_config(void)
   } else if (!strcmp(arg, "full")) {
     how = OPTIONS_DUMP_ALL;
   } else {
-    fprintf(stderr, "%s is not a recognized argument to --dump-config. "
-            "Please select 'short', 'non-builtin', or 'full'", arg);
+    fprintf(stderr, "No recognizable option to --dump-config found!\n");
+    fprintf(stderr, "Please select 'short', 'non-builtin', or 'full'.\n");
+
     return -1;
   }