about summary refs log tree commit diff
diff options
context:
space:
mode:
authorgimbles <yusharora@protonmail.com>2022-04-13 13:54:22 +0530
committergimbles <yusharora@protonmail.com>2022-04-13 13:54:22 +0530
commit71ad003bf68f8fe89534171778764d84fb50eb68 (patch)
tree6b627ad8609bc7011dab089bc6e62558bbcb7eae
parent32c26302620b2dbbe0a2291f1969bc0b1622ae59 (diff)
downloadrust-71ad003bf68f8fe89534171778764d84fb50eb68.tar.gz
rust-71ad003bf68f8fe89534171778764d84fb50eb68.zip
Improve error message when there's no checksum
-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 0b6bdf47419..d131a091e3b 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):