From 71ad003bf68f8fe89534171778764d84fb50eb68 Mon Sep 17 00:00:00 2001 From: gimbles Date: Wed, 13 Apr 2022 13:54:22 +0530 Subject: [PATCH] Improve error message when there's no checksum --- src/bootstrap/bootstrap.py | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/src/bootstrap/bootstrap.py b/src/bootstrap/bootstrap.py index 0b6bdf474195d..d131a091e3bd3 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):