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,
#[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<usize>,
index: usize,