Skip to content

chore: create interface for pkgs to return codersdk errors #18719

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
wants to merge 1 commit into
base: main
Choose a base branch
from

Conversation

Emyrk
Copy link
Member

@Emyrk Emyrk commented Jul 2, 2025

The dynamic parameter code lives in a package far removed from the httpapi and handlers. This interface allows it to create rich codersdk errors and pass them up to the wsbuilder error handling.

This interface should probably be used in more places. I got tired of making custom error handling code for unique types.

Copy link
Member Author

Emyrk commented Jul 2, 2025

@Emyrk Emyrk changed the title chore: interface for pkgs to return codersdk errors chore: create interface for pkgs to return codersdk errors Jul 2, 2025
@Emyrk Emyrk force-pushed the stevenmasley/preview_errors branch 2 times, most recently from b43bd8e to 15a6ca1 Compare July 2, 2025 15:54
@Emyrk Emyrk force-pushed the stevenmasley/preview_errors branch 2 times, most recently from f0dd768 to a87678d Compare July 2, 2025 16:48
@Emyrk Emyrk marked this pull request as ready for review July 2, 2025 17:30
@Emyrk Emyrk requested a review from johnstcn July 2, 2025 21:44
@Emyrk Emyrk force-pushed the stevenmasley/preview_errors branch from 96c83c7 to 8d594a7 Compare July 2, 2025 21:51
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