mirror of
https://github.com/rustic-rs/rustic.git
synced 2025-10-26 11:18:51 +00:00
fix: error handling when entering passwords (#963)
This commit is contained in:
parent
f16ba04646
commit
08bcc7ac7c
@ -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()),
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Loading…
Reference in New Issue
Block a user