formatChangeStepError formats a step failure into an MCP error result. It detects permission errors and wraps them appropriately.
(err error, defaultCode, permission string, partialRefs map[string]string)
| 584 | // formatChangeStepError formats a step failure into an MCP error result. |
| 585 | // It detects permission errors and wraps them appropriately. |
| 586 | func formatChangeStepError(err error, defaultCode, permission string, partialRefs map[string]string) *mcp.CallToolResult { |
| 587 | return formatChangeStepErrorWithHint(err, defaultCode, permission, partialRefs, "") |
| 588 | } |
| 589 | |
| 590 | // formatChangeStepErrorWithHint is like formatChangeStepError but replaces the |
| 591 | // default suggestion with hint when non-empty, keeping the JSON shape intact. |
no test coverage detected