fix create_file error reporting