From 5da1f4161ce7c64b35b2d7c72f04dc1a830034c6 Mon Sep 17 00:00:00 2001 From: Alyssa Ross Date: Tue, 7 Feb 2023 16:28:35 +0000 Subject: fix(tvix): fix InvalidEncodedDigestLength message Before: error[E997]: invalid output hash: invalid encoded digest length '43' for algo 43 After: error[E997]: invalid output hash: invalid encoded digest length '43' for algo sha256 Change-Id: Icb533839586b47f90b4e8d22083cce397f9f3655 Reviewed-on: https://cl.tvl.fyi/c/depot/+/8035 Tested-by: BuildkiteCI Reviewed-by: tazjin --- tvix/nix-compat/src/nixhash.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'tvix/nix-compat/src') diff --git a/tvix/nix-compat/src/nixhash.rs b/tvix/nix-compat/src/nixhash.rs index ceea886a4c6f..a1886039b07e 100644 --- a/tvix/nix-compat/src/nixhash.rs +++ b/tvix/nix-compat/src/nixhash.rs @@ -62,7 +62,7 @@ pub enum Error { InvalidAlgo(String), #[error("invalid sri string")] InvalidSRI, - #[error("invalid encoded digest length '{0}' for algo {0}")] + #[error("invalid encoded digest length '{0}' for algo {1}")] InvalidEncodedDigestLength(usize, HashAlgo), #[error("invalid base16 encoding: {0}")] InvalidBase16Encoding(data_encoding::DecodeError), -- cgit 1.4.1