mirror of
https://gitlab.torproject.org/tpo/core/tor.git
synced 2024-11-11 05:33:47 +01:00
Fix error message in do_dump_config().
This commit is contained in:
parent
65cd681635
commit
ad54c197a9
@ -2803,6 +2803,7 @@ do_dump_config(void)
|
|||||||
const char *arg = options->command_arg;
|
const char *arg = options->command_arg;
|
||||||
int how;
|
int how;
|
||||||
char *opts;
|
char *opts;
|
||||||
|
|
||||||
if (!strcmp(arg, "short")) {
|
if (!strcmp(arg, "short")) {
|
||||||
how = OPTIONS_DUMP_MINIMAL;
|
how = OPTIONS_DUMP_MINIMAL;
|
||||||
} else if (!strcmp(arg, "non-builtin")) {
|
} else if (!strcmp(arg, "non-builtin")) {
|
||||||
@ -2810,8 +2811,9 @@ do_dump_config(void)
|
|||||||
} else if (!strcmp(arg, "full")) {
|
} else if (!strcmp(arg, "full")) {
|
||||||
how = OPTIONS_DUMP_ALL;
|
how = OPTIONS_DUMP_ALL;
|
||||||
} else {
|
} else {
|
||||||
fprintf(stderr, "%s is not a recognized argument to --dump-config. "
|
fprintf(stderr, "No recognizable option to --dump-config found!\n");
|
||||||
"Please select 'short', 'non-builtin', or 'full'", arg);
|
fprintf(stderr, "Please select 'short', 'non-builtin', or 'full'.\n");
|
||||||
|
|
||||||
return -1;
|
return -1;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user