add err msg in sync_file_by_size for debugging