Made file error messages more descriptive.