about summary refs log tree commit diff
diff options
context:
space:
mode:
authorDylan DPC <99973273+Dylan-DPC@users.noreply.github.com>2022-04-13 17:35:32 +0200
committerGitHub <noreply@github.com>2022-04-13 17:35:32 +0200
commitd449a63e93c65ec5272e87e4532ec1992d4f2dab (patch)
treef2f431d1c4000d6bc3e51c5f1e1abc2d965e0105
parentdb61452b7a2ec92d90f4faebfa679c54ad3e1ab0 (diff)
parent71ad003bf68f8fe89534171778764d84fb50eb68 (diff)
downloadrust-d449a63e93c65ec5272e87e4532ec1992d4f2dab.tar.gz
rust-d449a63e93c65ec5272e87e4532ec1992d4f2dab.zip
Rollup merge of #95885 - gimbles:patch-1, r=Mark-Simulacrum
Improve error message in case of missing checksum

# Fixes
#94217
-rw-r--r--src/bootstrap/bootstrap.py6
1 files changed, 5 insertions, 1 deletions
diff --git a/src/bootstrap/bootstrap.py b/src/bootstrap/bootstrap.py
index 9af0657caff..d437397045c 100644
--- a/src/bootstrap/bootstrap.py
+++ b/src/bootstrap/bootstrap.py
@@ -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):