MCPcopy Create free account
hub / github.com/github/copilot-sdk / clientSessionHandlerError

Function clientSessionHandlerError

go/rpc/zrpc.go:18393–18402  ·  view source on GitHub ↗
(err error)

Source from the content-addressed store, hash-verified

18391}
18392
18393func clientSessionHandlerError(err error) *jsonrpc2.Error {
18394 if err == nil {
18395 return nil
18396 }
18397 var rpcErr *jsonrpc2.Error
18398 if errors.As(err, &rpcErr) {
18399 return rpcErr
18400 }
18401 return &jsonrpc2.Error{Code: -32603, Message: err.Error()}
18402}
18403
18404// RegisterClientSessionAPIHandlers registers handlers for server-to-client session API
18405// calls.

Callers 1

Calls 1

ErrorMethod · 0.45

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…