Skip to content

Commit

Permalink
fix: error handling when entering passwords (#963)
Browse files Browse the repository at this point in the history
  • Loading branch information
aawsome authored Jan 28, 2024
1 parent f16ba04 commit 08bcc7a
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/commands.rs
Original file line number Diff line number Diff line change
Expand Up @@ -271,8 +271,8 @@ fn open_repository(
.interact()?;
match repo.clone().open_with_password(&pass) {
Ok(repo) => return Ok(repo),
// TODO: fail if error != Password incorrect
Err(_) => continue,
Err(err) if err.is_incorrect_password() => continue,
Err(err) => return Err(err.into()),
}
}
}
Expand Down

0 comments on commit 08bcc7a

Please sign in to comment.