Added a check producing an error if any file has an error and a warning if any file is unassigned