}
if((fp_guard=fopen(DansGuardianConf,"r"))==NULL) {
- debuga(_("(dansguardian) Cannot open log file: %s\n"),DansGuardianConf);
+ debuga(_("(dansguardian) Cannot open log file %s: %s\n"),DansGuardianConf,strerror(errno));
exit(EXIT_FAILURE);
}
if((fp_ou=MY_FOPEN(guard_in,"a"))==NULL) {
- debuga(_("(dansguardian) Cannot open log file: %s\n"),guard_in);
+ debuga(_("(dansguardian) Cannot open log file %s: %s\n"),guard_in,strerror(errno));
exit(EXIT_FAILURE);
}
debuga(_("Reading DansGuardian log file: %s\n"),loglocation);
if((fp_in=MY_FOPEN(loglocation,"r"))==NULL) {
- debuga(_("(dansguardian) Cannot open log file: %s\n"),loglocation);
+ debuga(_("(dansguardian) Cannot open log file %s: %s\n"),loglocation,strerror(errno));
exit(EXIT_FAILURE);
}