From f2885b7e007f06c03c8473a72ad9f2014e94a9bb Mon Sep 17 00:00:00 2001 From: Janis Date: Mon, 3 Apr 2023 17:00:57 +0200 Subject: [PATCH] better out of range error msg --- btrfs/src/v2/mod.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/btrfs/src/v2/mod.rs b/btrfs/src/v2/mod.rs index 417b8e9..55a56b5 100644 --- a/btrfs/src/v2/mod.rs +++ b/btrfs/src/v2/mod.rs @@ -23,7 +23,7 @@ pub mod error { NoDefaultSubvolFsRoot, #[error("INode could not be found in FsTree")] INodeNotFound, - #[error("attempted to access item out of bounds")] + #[error("attempted to access {index}th item out of bounds {range:?}")] OutOfBounds { range: core::ops::Range, index: usize,