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

@@ -123,9 +123,9 @@ load_config(const char *config_file, bool verbose, bool terse, t_configuration_o
if (stat(config_file_path, &stat_config) != 0)
{
log_error(_("provided configuration file \"%s\" not found: %s"),
config_file,
strerror(errno));
log_error(_("provided configuration file \"%s\" not found"),
config_file);
log_detail("%s", strerror(errno));
exit(ERR_BAD_CONFIG);
}