diff options
author | Harmen Stoppels <harmenstoppels@gmail.com> | 2023-01-25 16:02:41 +0100 |
---|---|---|
committer | GitHub <noreply@github.com> | 2023-01-25 15:02:41 +0000 |
commit | 5f8c09fd334d729cf2ff0cdd2398ead78d9c621c (patch) | |
tree | b76c03eb68f8495a37ff4bcd970fb41b815f4fd1 /bin | |
parent | 8eb4807615610a987a558134247b8c3d41f04be8 (diff) | |
download | spack-5f8c09fd334d729cf2ff0cdd2398ead78d9c621c.tar.gz spack-5f8c09fd334d729cf2ff0cdd2398ead78d9c621c.tar.bz2 spack-5f8c09fd334d729cf2ff0cdd2398ead78d9c621c.tar.xz spack-5f8c09fd334d729cf2ff0cdd2398ead78d9c621c.zip |
Print file summary on checksum validation failure (#35161)
Currently we print "sha256 checksum failed for [file]. Expected X but
got Y".
This PR extends that message with file size and contents info:
"... but got Y. File size = 123456 bytes. Contents = b'abc...def'"
That way we can immediately see if the file was downloaded only
partially, or if we downloaded a text page instead of a binary, etc.
Co-authored-by: Massimiliano Culpo <massimiliano.culpo@gmail.com>
Diffstat (limited to 'bin')
0 files changed, 0 insertions, 0 deletions