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

@@ -53,6 +53,11 @@ int toss_msgs(void)
struct dirent *de;
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) {
WriteError("$Can't opendir %s", CFG.msgs_path);
return -1;