fix: error handling when entering passwords (#963)

This commit is contained in:
aawsome 2024-01-28 17:27:18 +01:00 committed by GitHub
parent f16ba04646
commit 08bcc7ac7c
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -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()),
}
}
}