From cfa42fd19aa58ee10d3b1660f4f1bb7b2efdfccc Mon Sep 17 00:00:00 2001 From: Florian Klink Date: Mon, 9 Jan 2023 14:30:30 +0000 Subject: chore(tvix/store): update ParseStorePathError messages Change-Id: I49799393a1e35b4475566819111beb57a628c555 Reviewed-on: https://cl.tvl.fyi/c/depot/+/7801 Tested-by: BuildkiteCI Reviewed-by: tazjin --- tvix/store/src/store_path.rs | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'tvix/store/src') diff --git a/tvix/store/src/store_path.rs b/tvix/store/src/store_path.rs index b63f134bcea2..1719e071c80f 100644 --- a/tvix/store/src/store_path.rs +++ b/tvix/store/src/store_path.rs @@ -16,11 +16,11 @@ pub const STORE_DIR_WITH_SLASH: &str = "/nix/store/"; /// Errors that can occur during the validation of name characters. #[derive(Debug, PartialEq, Eq, Error)] pub enum ParseStorePathError { - #[error("Dash is missing")] + #[error("Dash is missing between hash and name")] MissingDash(), - #[error("Hash encoding is invalid {0}")] + #[error("Hash encoding is invalid: {0}")] InvalidHashEncoding(DecodeError), - #[error("Invalid name {0}")] + #[error("Invalid name: {0}")] InvalidName(String), #[error("Tried to parse an absolute path which was missing the store dir prefix.")] MissingStoreDir(), -- cgit 1.4.1