INNER CODE UNIT · Go

responseError

geekjourneyx/md2wechat-skill · cmd/md2wechat/main.go:504

func responseError(err error) {
	if cliErr, ok := extractCLIError(err); ok {
		responseErrorWith(cliErr.Code, cliErr)
		return
	}
	responseErrorWith(codeError, err)
}

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{

View source record →

📰 Research Paper
Loading…
⏳ Fetching content…