MCPcopy Index your code
hub / github.com/github/copilot-sdk / fail

Method fail

go/copilot_request_handler.go:360–368  ·  view source on GitHub ↗
(message string, code string)

Source from the content-addressed store, hash-verified

358}
359
360func (w *wsResponseWriter) fail(message string, code string) error {
361 w.mu.Lock()
362 defer w.mu.Unlock()
363 if w.completed {
364 return nil
365 }
366 w.completed = true
367 return w.sink.sinkError(message, code)
368}
369
370// CopilotWebSocketForwarder is the default [CopilotWebSocketHandler]:
371// it dials the real upstream and runs a receive loop forwarding upstream→runtime

Calls 1

sinkErrorMethod · 0.80