MCPcopy Create free account
hub / github.com/asternic/wuzapi / sendError

Method sendError

stdio.go:558–568  ·  view source on GitHub ↗
(id ID, code int, errorMsg string)

Source from the content-addressed store, hash-verified

556}
557
558func (ss *stdioServer) sendSuccess(id ID, code int, data interface{}) {
559 response := jsonRpcResponse{
560 JSONRPC: "2.0",
561 ID: id,
562 Result: &jsonResult{Value: data},
563 }
564 ss.writeResponse(response)
565}
566
567func (ss *stdioServer) sendError(id ID, code int, errorMsg string) {
568 response := jsonRpcResponse{
569 JSONRPC: "2.0",
570 ID: id,
571 Error: &rpcError{

Callers 5

handleRequestMethod · 0.95
getUserIdParamMethod · 0.95
routeRequestMethod · 0.95
executeHTTPHandlerMethod · 0.95
convertHTTPResponseMethod · 0.95

Calls 1

writeResponseMethod · 0.95

Tested by

no test coverage detected