chore: Add 1 to the index when print it

Signed-off-by: Awiteb <a@4rs.nl>
This commit is contained in:
Awiteb 2024-08-20 16:58:07 +00:00
parent aee33f819c
commit e033971665
Signed by: awiteb
GPG key ID: 3F6B55640AA6682F

View file

@ -265,7 +265,10 @@ pub fn vault_by_index_or_name<'v>(
Ok(( Ok((
idx, idx,
vaults.get_mut(idx).ok_or_else(|| { 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
))
})?, })?,
)) ))
} }