mirror of
https://github.com/gitbutlerapp/gitbutler.git
synced 2024-11-28 22:03:30 +03:00
Merge pull request #3845 from gitbutlerapp/update-base-branch-anyhow
feat: Update base branch handling to use anyhow
This commit is contained in:
commit
9db262936c
@ -336,9 +336,9 @@ fn _print_tree(repo: &git2::Repository, tree: &git2::Tree) -> Result<()> {
|
||||
pub fn update_base_branch(
|
||||
project_repository: &project_repository::Repository,
|
||||
user: Option<&users::User>,
|
||||
) -> Result<(), errors::UpdateBaseBranchError> {
|
||||
) -> anyhow::Result<()> {
|
||||
if project_repository.is_resolving() {
|
||||
return Err(errors::UpdateBaseBranchError::Conflict(
|
||||
anyhow::bail!(errors::UpdateBaseBranchError::Conflict(
|
||||
errors::ProjectConflict {
|
||||
project_id: project_repository.project().id,
|
||||
},
|
||||
|
Loading…
Reference in New Issue
Block a user