better out of range error msg

This commit is contained in:
Janis 2023-04-03 17:00:57 +02:00
parent 03997b78e7
commit f2885b7e00

View file

@ -23,7 +23,7 @@ pub mod error {
NoDefaultSubvolFsRoot, NoDefaultSubvolFsRoot,
#[error("INode could not be found in FsTree")] #[error("INode could not be found in FsTree")]
INodeNotFound, INodeNotFound,
#[error("attempted to access item out of bounds")] #[error("attempted to access {index}th item out of bounds {range:?}")]
OutOfBounds { OutOfBounds {
range: core::ops::Range<usize>, range: core::ops::Range<usize>,
index: usize, index: usize,