Skip to content

Commit 4ea1064

Browse files
committed
Print detailed error on domain file error
1 parent 194bbe2 commit 4ea1064

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/main.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2296,7 +2296,7 @@ void run()
22962296
context.domainfile = fopen(context.cmd_args.domains, "r");
22972297
if (context.domainfile == NULL)
22982298
{
2299-
log_msg(LOG_ERROR, "Failed to open domain file \"%s\".\n", context.cmd_args.domains);
2299+
log_msg(LOG_ERROR, "Failed to open domain file \"%s\": %s\n", context.cmd_args.domains, strerror(errno));
23002300
clean_exit(EXIT_FAILURE);
23012301
}
23022302
}

0 commit comments

Comments
 (0)