Consistently log strerror output as DETAIL

This commit is contained in:
Ian Barwick
2019-01-29 12:10:55 +09:00
parent e5f50e7b99
commit a48d408e4e
4 changed files with 14 additions and 11 deletions

View File

@@ -351,8 +351,9 @@ create_pg_dir(const char *path, bool force)
}
break;
case DIR_ERROR:
log_error(_("could not access directory \"%s\": %s"),
path, strerror(errno));
log_error(_("could not access directory \"%s\"")
, path);
log_detail("%s", strerror(errno));
return false;
}