(query, errMsg, currentTool string)
| 57 | } |
| 58 | |
| 59 | func (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 | |
| 67 | func (ms *mcpServer) errorInfoFromCoreError(query string, err core.Error, currentTool string) ErrorInfo { |
| 68 | info := ErrorInfo{ |
no test coverage detected