mirror of
https://github.com/rust-lang/rust.git
synced 2024-11-26 08:44:35 +00:00
Improve error message when there's no checksum
This commit is contained in:
parent
32c2630262
commit
71ad003bf6
@ -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):
|
||||
|
Loading…
Reference in New Issue
Block a user