Improve error message

This commit is contained in:
Ian Barwick
2015-03-10 08:42:46 +09:00
parent 606d0afabc
commit 918ee3811f

View File

@@ -583,9 +583,10 @@ do_cluster_show(void)
if (PQresultStatus(res) != PGRES_TUPLES_OK) if (PQresultStatus(res) != PGRES_TUPLES_OK)
{ {
// ZZZ log_err(_("Unable to retrieve node information from the database\n%s\n"),
log_err(_("can't get nodes information, have you registered them?\n%s\n"),
PQerrorMessage(conn)); PQerrorMessage(conn));
log_notice(_("HINT: Please check that all nodes have been registered\n"));
PQclear(res); PQclear(res);
PQfinish(conn); PQfinish(conn);
exit(ERR_BAD_CONFIG); exit(ERR_BAD_CONFIG);