fix _get_receive_file_error error logic