Rollup merge of #95885 - gimbles:patch-1, r=Mark-Simulacrum
Improve error message in case of missing checksum # Fixes #94217
This commit is contained in:
commit
d449a63e93
1 changed files with 5 additions and 1 deletions
|
@ -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…
Add table
Reference in a new issue