Skip to content

fix(errors): stop repeating err_code that is already in err_msg#10

Merged
Jacob-Lasky merged 1 commit into
mainfrom
fix/error-code-duplication
Jul 25, 2026
Merged

fix(errors): stop repeating err_code that is already in err_msg#10
Jacob-Lasky merged 1 commit into
mainfrom
fix/error-code-duplication

Conversation

@Jacob-Lasky

Copy link
Copy Markdown
Owner

Cosmetic follow-up to #9, caught in its own live output:

Deepgram 400: Bad Request: Nova-3 models do not support more than one alternative. (Bad Request)

Deepgram usually prefixes err_msg with err_code, so appending it unconditionally stutters. Now appended only when the code adds information; a test pins both directions.

113 passed, 1 skipped.

Observed in the live response after the previous change:

    Deepgram 400: Bad Request: Nova-3 models do not support more than one
    alternative. (Bad Request)

Deepgram usually prefixes err_msg with err_code, so appending it
unconditionally stutters. Append only when the code adds information.
@Jacob-Lasky
Jacob-Lasky merged commit dd3eb5b into main Jul 25, 2026
1 check passed
@Jacob-Lasky
Jacob-Lasky deleted the fix/error-code-duplication branch July 25, 2026 17:25
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant