From 918ee3811f7058b19173abf19ffaaaef78a5a6cd Mon Sep 17 00:00:00 2001 From: Ian Barwick Date: Tue, 10 Mar 2015 08:42:46 +0900 Subject: [PATCH] Improve error message --- repmgr.c | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/repmgr.c b/repmgr.c index 016c1721..0ca12f58 100644 --- a/repmgr.c +++ b/repmgr.c @@ -583,9 +583,10 @@ do_cluster_show(void) if (PQresultStatus(res) != PGRES_TUPLES_OK) { - // ZZZ - log_err(_("can't get nodes information, have you registered them?\n%s\n"), + log_err(_("Unable to retrieve node information from the database\n%s\n"), PQerrorMessage(conn)); + log_notice(_("HINT: Please check that all nodes have been registered\n")); + PQclear(res); PQfinish(conn); exit(ERR_BAD_CONFIG);