diff options
| author | gimbles <yusharora@protonmail.com> | 2022-04-13 13:54:22 +0530 |
|---|---|---|
| committer | gimbles <yusharora@protonmail.com> | 2022-04-13 13:54:22 +0530 |
| commit | 71ad003bf68f8fe89534171778764d84fb50eb68 (patch) | |
| tree | 6b627ad8609bc7011dab089bc6e62558bbcb7eae | |
| parent | 32c26302620b2dbbe0a2291f1969bc0b1622ae59 (diff) | |
| download | rust-71ad003bf68f8fe89534171778764d84fb50eb68.tar.gz rust-71ad003bf68f8fe89534171778764d84fb50eb68.zip | |
Improve error message when there's no checksum
| -rw-r--r-- | src/bootstrap/bootstrap.py | 6 |
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): |
