Skip to content
This repository has been archived by the owner on Nov 3, 2023. It is now read-only.

Better error message on download failures. #3987

Merged
merged 1 commit into from
Aug 30, 2021
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 3 additions & 2 deletions parlai/core/build_data.py
Original file line number Diff line number Diff line change
Expand Up @@ -74,8 +74,9 @@ def checksum(self, dpath):
# remove_dir(dpath)
raise AssertionError(
f"Checksum for {self.file_name} from \n{self.url}\n"
f"does not match the expected checksum:\n{sha256_hash.hexdigest()} != {self.hashcode}"
"\n\nPlease try again."
f"does not match the expected checksum:\n"
f"{sha256_hash.hexdigest()} (received) != {self.hashcode} (expected)\n"
f"\nPlease try again. You may need to manually delete {self.filename}."
)
else:
logging.debug("Checksum Successful")
Expand Down