Improve "witness register" documentation, help and logging

Make it clearer that a) the primary server's hostname is required,
and b) how to provide it.

Based on feedback provided in GitHub #529.
This commit is contained in:
Ian Barwick
2019-01-17 10:42:53 +09:00
parent 9f04a846ec
commit aa8547a219
3 changed files with 17 additions and 10 deletions

View File

@@ -1409,7 +1409,7 @@ check_cli_parameters(const int action)
if (!runtime_options.host_param_provided)
{
item_list_append_format(&cli_errors,
_("host name for the source node must be provided when executing %s"),
_("host name for the source node must be provided with -h/--hostname when executing %s"),
action_name(action));
}
@@ -1466,7 +1466,7 @@ check_cli_parameters(const int action)
if (!runtime_options.host_param_provided)
{
item_list_append_format(&cli_errors,
_("host name for the source node must be provided when executing %s"),
_("host name for the source node must be provided with -h/--hostname when executing %s"),
action_name(action));
}
}