Hex-encode computed checksum in log message

Oops!
This commit is contained in:
Reynir Björnsson 2024-10-18 10:43:09 +02:00
parent 5accfcfc08
commit 8af9f04dd0

View file

@ -482,7 +482,7 @@ module Make
(if sizes_match then (if sizes_match then
Logs.err (fun m -> m "Bad checksum %s:%s: computed %s expected %s" url Logs.err (fun m -> m "Bad checksum %s:%s: computed %s expected %s" url
(hash_to_string hash) (hash_to_string hash)
(Archive_checksum.get digests hash) (Ohex.encode (Archive_checksum.get digests hash))
(Ohex.encode csum)) (Ohex.encode csum))
else match body with else match body with
| `Fixed_body (reported, actual) -> | `Fixed_body (reported, actual) ->