Skip to content
Snippets Groups Projects
Commit 8d9351c773c2 authored by Georges Racinet's avatar Georges Racinet
Browse files

rhgitaly::gitlab::state:StateFileError usable with question mark operator

It is hard imagining converting this Heptapod-specific error into
something else than `Internal`. Anyway, such shortcuts do not preclude
performing manual error treatment.
parent 704a192d4e9c
No related branches found
No related tags found
3 merge requests!245Update MSRV to 1.73 and merge stable,!241RHGitaly implement FindTag and ObjectFormat,!240RHGitaly implement FindTag and ObjectFormat
......@@ -87,6 +87,12 @@
InvalidNode(Vec<u8>),
}
impl From<StateFileError> for tonic::Status {
fn from(e: StateFileError) -> Self {
tonic::Status::internal(format!("GitLab state file error: {:?}", &e))
}
}
/// Read the GitLab default branch information
///
/// This notion is stateful and repository specific (can be tweaked by users). It is independent
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment