INNER CODE UNIT · Go
responseErrorWith
geekjourneyx/md2wechat-skill · cmd/md2wechat/main.go:512
func responseErrorWith(code string, err error) {
retryable := false
var errorDetails map[string]any
var nextActions []string
if cliErr, ok := extractCLIError(err); ok {
retryable = cliErr.Retryable
errorDetails = cliErr.Details
nextActions = cliErr.NextActions
}
responseWith(cliResponse{
Success: false,
Code: code,
Message: err.Error(),
SchemaVersion: action.SchemaVersion,
Status: action.StatusFailed,
Retryable: retryable,
Error: err.Error(),
ErrorDetails: errorDetails,