@@ -567,18 +567,16 @@ fn runResource(
567
567
if (declared_hash .isOld ()) {
568
568
const actual_hex = Package .multiHashHexDigest (f .computed_hash .digest );
569
569
if (! std .mem .eql (u8 , declared_hash .toSlice (), & actual_hex )) {
570
- const declared = if (declared_hash .toSlice ().len > 0 ) declared_hash .toSlice () else "<empty>" ;
571
570
return f .fail (hash_tok , try eb .printString (
572
- "hash mismatch: manifest declares {s} but the fetched package has {s}" ,
573
- .{ declared , actual_hex },
571
+ "hash mismatch: manifest declares ' {s}' but the fetched package has ' {s}' " ,
572
+ .{ declared_hash . toSlice () , actual_hex },
574
573
));
575
574
}
576
575
} else {
577
576
if (! computed_package_hash .eql (& declared_hash )) {
578
- const declared = if (declared_hash .toSlice ().len > 0 ) declared_hash .toSlice () else "<empty>" ;
579
577
return f .fail (hash_tok , try eb .printString (
580
- "hash mismatch: manifest declares {s} but the fetched package has {s}" ,
581
- .{ declared , computed_package_hash .toSlice () },
578
+ "hash mismatch: manifest declares ' {s}' but the fetched package has ' {s}' " ,
579
+ .{ declared_hash . toSlice () , computed_package_hash .toSlice () },
582
580
));
583
581
}
584
582
}
0 commit comments