From 97c59b0ad36ba7d6c951ca223181d71285d48196 Mon Sep 17 00:00:00 2001 From: Ian Jackson Date: Sat, 14 May 2022 15:43:55 +0100 Subject: [PATCH] spec: LibraryItemNotFound: Actually report the ItemSpec This error message was hopeless. Signed-off-by: Ian Jackson --- src/spec.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/spec.rs b/src/spec.rs index 0623ac33..b259cbf1 100644 --- a/src/spec.rs +++ b/src/spec.rs @@ -70,7 +70,7 @@ pub enum SpecError { #[error("internal error: {0}")] InternalError(String), #[error("specified position is off table")] PosOffTable, #[error("library not found")] LibraryNotFound, - #[error("item not found in library")] LibraryItemNotFound(ItemSpec), + #[error("item not found in library: {0:?}")] LibraryItemNotFound(ItemSpec), #[error("acl contains invalid account glob")] AclInvalidAccountGlob, #[error("acl entry allow/deny overlap")] AclEntryOverlappingAllowDeny, #[error("inconsistent piece count")] InconsistentPieceCount, -- 2.30.2