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

Function canvasResultError

go/session.go:348–359  ·  view source on GitHub ↗
(err error)

Source from the content-addressed store, hash-verified

346}
347
348func canvasResultError(err error) error {
349 if err == nil {
350 return nil
351 }
352 if rpcErr, ok := err.(*jsonrpc2.Error); ok {
353 return rpcErr
354 }
355 if cerr, ok := err.(*CanvasError); ok {
356 return canvasJSONRPCError(cerr)
357 }
358 return canvasJSONRPCError(NewCanvasError("canvas_handler_error", err.Error()))
359}
360
361// newSession creates a new session wrapper with the given session ID and client.
362func newSession(sessionID string, client *jsonrpc2.Client, workspacePath string) *Session {

Callers 3

CloseMethod · 0.85
InvokeMethod · 0.85
OpenMethod · 0.85

Calls 3

canvasJSONRPCErrorFunction · 0.85
NewCanvasErrorFunction · 0.85
ErrorMethod · 0.45

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…