Skip to content

Commit

Permalink
Rollup merge of #95885 - gimbles:patch-1, r=Mark-Simulacrum
Browse files Browse the repository at this point in the history
Improve error message in case of missing checksum

# Fixes
#94217
  • Loading branch information
Dylan-DPC authored Apr 13, 2022
2 parents db61452 + 71ad003 commit d449a63
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion src/bootstrap/bootstrap.py
Original file line number Diff line number Diff line change
Expand Up @@ -70,7 +70,11 @@ def get(base, url, path, checksums, verbose=False, do_verify=True, help_on_error
try:
if do_verify:
if url not in checksums:
raise RuntimeError("src/stage0.json doesn't contain a checksum for {}".format(url))
raise RuntimeError(("src/stage0.json doesn't contain a checksum for {}. "
"Pre-built artifacts might not available for this "
"target at this time, see https://doc.rust-lang.org/nightly"
"/rustc/platform-support.html for more information.")
.format(url))
sha256 = checksums[url]
if os.path.exists(path):
if verify(path, sha256, False):
Expand Down

0 comments on commit d449a63

Please sign in to comment.