We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 3eb246c commit 1b3a53cCopy full SHA for 1b3a53c
src/cargo/util/rustc.rs
@@ -85,11 +85,11 @@ impl Rustc {
85
let commit_hash = extract("commit-hash: ").ok().map(|hash| {
86
debug_assert!(
87
hash.chars().all(|ch| ch.is_ascii_hexdigit()),
88
- "commit hash must be a hex string"
+ "commit hash must be a hex string, got: {hash:?}"
89
);
90
91
hash.len() == 40 || hash.len() == 64,
92
- "hex string must be generated from sha1 or sha256"
+ "hex string must be generated from sha1 or sha256 (i.e., it must be 40 or 64 characters long)\ngot: {hash:?}"
93
94
hash.to_string()
95
});
0 commit comments