Skip to content

Commit 71ad003

Browse files
author
gimbles
committed
Improve error message when there's no checksum
1 parent 32c2630 commit 71ad003

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

src/bootstrap/bootstrap.py

+5-1
Original file line numberDiff line numberDiff line change
@@ -70,7 +70,11 @@ def get(base, url, path, checksums, verbose=False, do_verify=True, help_on_error
7070
try:
7171
if do_verify:
7272
if url not in checksums:
73-
raise RuntimeError("src/stage0.json doesn't contain a checksum for {}".format(url))
73+
raise RuntimeError(("src/stage0.json doesn't contain a checksum for {}. "
74+
"Pre-built artifacts might not available for this "
75+
"target at this time, see https://doc.rust-lang.org/nightly"
76+
"/rustc/platform-support.html for more information.")
77+
.format(url))
7478
sha256 = checksums[url]
7579
if os.path.exists(path):
7680
if verify(path, sha256, False):

0 commit comments

Comments
 (0)