Added errorlog message

This commit is contained in:
Michiel Broek 2005-08-12 14:21:18 +00:00
parent ed3b1fcbe7
commit fc990c8a85
2 changed files with 6 additions and 0 deletions

View File

@ -5,6 +5,7 @@ v0.71.4 12-Aug-2005
mbfido: mbfido:
Added extra debug logging to trace an SIGSEG when forwarding Added extra debug logging to trace an SIGSEG when forwarding
files. files.
Added error logmessage in case *.msg path isn't defined.
v0.71.3 13-Jun-2005 - 12-Aug-2005 v0.71.3 13-Jun-2005 - 12-Aug-2005

View File

@ -53,6 +53,11 @@ int toss_msgs(void)
struct dirent *de; struct dirent *de;
int files = 0; int files = 0;
if (strlen(CFG.msgs_path) == 0) {
WriteError("No path defined for *.msg mail, check setup 1.4 screen 2, item 10");
return -1;
}
if ((dp = opendir(CFG.msgs_path)) == NULL) { if ((dp = opendir(CFG.msgs_path)) == NULL) {
WriteError("$Can't opendir %s", CFG.msgs_path); WriteError("$Can't opendir %s", CFG.msgs_path);
return -1; return -1;