handle file error