From e03397166527bb0eb320ee079bdae0ec21882d83 Mon Sep 17 00:00:00 2001 From: Awiteb Date: Tue, 20 Aug 2024 16:58:07 +0000 Subject: [PATCH] chore: Add 1 to the index when print it Signed-off-by: Awiteb --- src/utils.rs | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/src/utils.rs b/src/utils.rs index 944dfd9..38d0610 100644 --- a/src/utils.rs +++ b/src/utils.rs @@ -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 + )) })?, )) }