From f294d0903478f66e1b45525631f5d1cd8c1dcead Mon Sep 17 00:00:00 2001 From: Ian Barwick Date: Fri, 26 Jan 2018 22:13:11 +0900 Subject: [PATCH] "repmgr standby register": improve error output when standby not running Add explicit HINT --- repmgr-action-standby.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/repmgr-action-standby.c b/repmgr-action-standby.c index 3ad2ded3..9fa8699d 100644 --- a/repmgr-action-standby.c +++ b/repmgr-action-standby.c @@ -843,9 +843,10 @@ do_standby_register(void) if (runtime_options.connection_param_provided == false) { - log_error(_("unable to connect to local node \"%s\" (ID: %i) and no primary connection parameters provided"), + log_error(_("unable to connect to local node \"%s\" (ID: %i)"), config_file_options.node_name, config_file_options.node_id); + log_hint(_("to register an inactive standby, additionally provide the primary connection parameters")); exit(ERR_BAD_CONFIG); } }