better out of range error msg
This commit is contained in:
parent
03997b78e7
commit
f2885b7e00
|
@ -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,
|
||||||
|
|
Loading…
Reference in a new issue