MCPcopy
hub / github.com/dosco/graphjin / errorInfo

Method errorInfo

serv/exec_error_augment.go:59–65  ·  view source on GitHub ↗
(query, errMsg, currentTool string)

Source from the content-addressed store, hash-verified

57}
58
59func (ms *mcpServer) errorInfo(query, errMsg, currentTool string) ErrorInfo {
60 info := ErrorInfo{Message: ms.enhanceExecError(errMsg, currentTool)}
61 if repair := core.BuildGraphJinErrorRepair(query, errMsg); repair.Known() {
62 info.Extensions = map[string]any{"graphjin_repair": repair}
63 }
64 return info
65}
66
67func (ms *mcpServer) errorInfoFromCoreError(query string, err core.Error, currentTool string) ErrorInfo {
68 info := ErrorInfo{

Callers 2

handleExecuteGraphQLMethod · 0.95

Calls 2

enhanceExecErrorMethod · 0.95
KnownMethod · 0.80

Tested by

no test coverage detected