MCPcopy Create free account
hub / github.com/Axosoft/git-rs / handle_errors

Function handle_errors

gitrs_server/src/dispatch/git_command/bisect/mod.rs:105–114  ·  view source on GitHub ↗
(
    (err, connection_state): (SubhandlerError<BisectError>, state::Connection),
)

Source from the content-addressed store, hash-verified

103}
104
105fn handle_errors(
106 (err, connection_state): (SubhandlerError<BisectError>, state::Connection),
107) -> DispatchFuture {
108 match err {
109 SubhandlerError::Shared(err) => Box::new(future::err((err, connection_state))),
110 SubhandlerError::Subhandler(err) => {
111 Box::new(send_message(connection_state, OutboundMessage::Error(err)))
112 }
113 }
114}
115
116type LoopFuture = Box<
117 Future<

Callers

nothing calls this directly

Calls 2

send_messageFunction · 0.85
ErrorEnum · 0.85

Tested by

no test coverage detected