mirror of
https://github.com/gitbutlerapp/gitbutler.git
synced 2025-01-07 10:26:45 +03:00
correctly return git fetch errors
This commit is contained in:
parent
0e1be9d25f
commit
73fa6e9c90
@ -248,7 +248,7 @@ impl Repository {
|
|||||||
}
|
}
|
||||||
Err(git::Error::AuthenticationFailed(error)) => {
|
Err(git::Error::AuthenticationFailed(error)) => {
|
||||||
tracing::error!(project_id = self.project.id, ?error, "git push failed",);
|
tracing::error!(project_id = self.project.id, ?error, "git push failed",);
|
||||||
continue
|
continue;
|
||||||
}
|
}
|
||||||
Err(error) => return Err(RemoteError::Other(error.into())),
|
Err(error) => return Err(RemoteError::Other(error.into())),
|
||||||
}
|
}
|
||||||
@ -311,10 +311,11 @@ impl Repository {
|
|||||||
tracing::info!(project_id = self.project.id, %refspec, "git fetched");
|
tracing::info!(project_id = self.project.id, %refspec, "git fetched");
|
||||||
return Ok(());
|
return Ok(());
|
||||||
}
|
}
|
||||||
Err(error) => {
|
Err(git::Error::AuthenticationFailed(error)) => {
|
||||||
tracing::error!(project_id = self.project.id, ?error, "fetch failed");
|
tracing::error!(project_id = self.project.id, ?error, "fetch failed");
|
||||||
continue;
|
continue;
|
||||||
}
|
}
|
||||||
|
Err(error) => return Err(RemoteError::Other(error.into())),
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user