Branch: Tag:

2016-05-10

2016-05-10 16:26:15 by Henrik Grubbström (Grubba) <grubba@grubba.org>

Filesystem.Monitor: Improved error handling somewhat.

Errors were hidden in some cases.

489:    } else if (!m2) {    file_created(file, file_stat(file, 1));    } +  if (err) { +  master()->handle_error(err);    } -  +  }    foreach(deleted_files, string file) {    res = 1;    file = canonic_path(Stdio.append_path(path, file));
941:    m->check(0);    };    if (err) { -  master()->handler_error(err); +  master()->handle_error(err);    }    } else {    MON_WERR("No monitor found for path %O.\n", path);