standby clone: improve error logging

When executing "repmgr standby clone" in Barman mode, and --waldir
is set in pg_basebackup options, properly report an error if the
target WAL directory could not be created or is not empty.
This commit is contained in:
Ian Barwick
2020-10-08 10:44:34 +09:00
parent 4b524c52b6
commit e7acb6809b

View File

@@ -7226,7 +7226,9 @@ run_file_backup(t_node_info *local_node_record)
{
if (create_pg_dir(backup_options.waldir, false) == false)
{
/* create_pg_dir() will log any errors */
/* create_pg_dir() will log specifics */
log_error(_("unable to create an empty directory for WAL files"));
log_hint(_("see preceding error messages"));
exit(ERR_BAD_CONFIG);
}