mirror of
https://github.com/EnterpriseDB/repmgr.git
synced 2026-03-22 22:56:29 +00:00
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:
@@ -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);
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user