Skip to content
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

fix(errors): Downgrade AI/Playground erors to 400 #304

Merged
merged 3 commits into from
Jul 27, 2023
Merged

Conversation

fiji-flo
Copy link
Contributor

No description provided.

@fiji-flo fiji-flo requested a review from LeoMcA July 24, 2023 09:26
Copy link
Member

@LeoMcA LeoMcA left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Little bit confused by the varying behaviours between PlaygroundError and AIError here - it also feels like there should be a simpler way of saying "just use the ResponseError implementation on the wrapped error" than having to match each error explicitly, in each trait method

src/api/error.rs Outdated Show resolved Hide resolved
src/api/error.rs Outdated Show resolved Hide resolved
src/api/error.rs Show resolved Hide resolved
@fiji-flo
Copy link
Contributor Author

Yes, Errors became messy but that's a medium sized refactoring to clean this up. We'll do.

@fiji-flo fiji-flo requested a review from LeoMcA July 27, 2023 07:54
Copy link
Member

@LeoMcA LeoMcA left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

lgtm!

@fiji-flo fiji-flo merged commit 855094f into main Jul 27, 2023
@fiji-flo fiji-flo deleted the less-noise branch July 27, 2023 19:00
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.

2 participants