about summary refs log tree commit diff
diff options
context:
space:
mode:
authorFlorian Klink <flokli@flokli.de>2023-01-09T14·30+0000
committerflokli <flokli@flokli.de>2023-01-12T10·11+0000
commitcfa42fd19aa58ee10d3b1660f4f1bb7b2efdfccc (patch)
tree74d0100961de860e58cdb5c7a15a188611f6454e
parented3b28aa02b1c20bc8d5c2c9846fb0b68ea6deca (diff)
chore(tvix/store): update ParseStorePathError messages r/5648
Change-Id: I49799393a1e35b4475566819111beb57a628c555
Reviewed-on: https://cl.tvl.fyi/c/depot/+/7801
Tested-by: BuildkiteCI
Reviewed-by: tazjin <tazjin@tvl.su>
-rw-r--r--tvix/store/src/store_path.rs6
1 files changed, 3 insertions, 3 deletions
diff --git a/tvix/store/src/store_path.rs b/tvix/store/src/store_path.rs
index b63f134bce..1719e071c8 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(),