From: Ian Jackson Date: Sat, 14 May 2022 14:43:55 +0000 (+0100) Subject: spec: LibraryItemNotFound: Actually report the ItemSpec X-Git-Tag: otter-1.1.0~195 X-Git-Url: https://www.chiark.greenend.org.uk/ucgi/~ianmdlvl/git?a=commitdiff_plain;h=97c59b0ad36ba7d6c951ca223181d71285d48196;p=otter.git spec: LibraryItemNotFound: Actually report the ItemSpec This error message was hopeless. Signed-off-by: Ian Jackson --- 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,