MCPcopy
hub / github.com/cli/cli / callError

Function callError

internal/barista/observability/telemetry.twirp.go:1064–1069  ·  view source on GitHub ↗

Call twirp.ServerHooks.Error if the hook is available

(ctx context.Context, h *twirp.ServerHooks, err twirp.Error)

Source from the content-addressed store, hash-verified

1062
1063// Call twirp.ServerHooks.Error if the hook is available
1064func callError(ctx context.Context, h *twirp.ServerHooks, err twirp.Error) context.Context {
1065 if h == nil || h.Error == nil {
1066 return ctx
1067 }
1068 return h.Error(ctx, err)
1069}
1070
1071func callClientResponseReceived(ctx context.Context, h *twirp.ClientHooks) {
1072 if h == nil || h.ResponseReceived == nil {

Callers 3

serveRecordEventsJSONMethod · 0.85
writeErrorFunction · 0.85

Calls 1

ErrorMethod · 0.45

Tested by

no test coverage detected