diff options
author | rl1987 <rl1987@sdf.lonestar.org> | 2015-04-06 21:01:43 +0300 |
---|---|---|
committer | rl1987 <rl1987@sdf.lonestar.org> | 2015-04-06 21:01:43 +0300 |
commit | ad54c197a97ba71129a8d223c1dae665e19b9d8f (patch) | |
tree | 556a68682e195d120a9f91c09bf94d04792eb268 /src/or | |
parent | 65cd681635f54e40dfae3091d0dc6ddf53b7fdd0 (diff) | |
download | tor-ad54c197a97ba71129a8d223c1dae665e19b9d8f.tar.gz tor-ad54c197a97ba71129a8d223c1dae665e19b9d8f.zip |
Fix error message in do_dump_config().
Diffstat (limited to 'src/or')
-rw-r--r-- | src/or/main.c | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/src/or/main.c b/src/or/main.c index a816fad2bb..c0ca1584a3 100644 --- a/src/or/main.c +++ b/src/or/main.c @@ -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; } |