chore: Add 1 to the index when print it
Signed-off-by: Awiteb <a@4rs.nl>
This commit is contained in:
parent
aee33f819c
commit
e033971665
1 changed files with 4 additions and 1 deletions
|
@ -265,7 +265,10 @@ pub fn vault_by_index_or_name<'v>(
|
|||
Ok((
|
||||
idx,
|
||||
vaults.get_mut(idx).ok_or_else(|| {
|
||||
LprsError::Other(format!("There is no vault with the given index `{idx}`"))
|
||||
LprsError::Other(format!(
|
||||
"There is no vault with the given index `{}`",
|
||||
idx + 1
|
||||
))
|
||||
})?,
|
||||
))
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue