add error message to loading file