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

add better error messaging upon rules collection creation #109

Open
wants to merge 5 commits into
base: master
Choose a base branch
from

Conversation

depahelix2021
Copy link

If you do not provide both names, there should be a clear error message that says as much.

If a 500 Internal Server Error comes back, surface that to the user and hint that it is most likely because they are trying to create a rules collection for a Solr collection that already has one attached to it.

@epugh
Copy link
Contributor

epugh commented May 24, 2022

Error handling makes sense, however I wonder if there is also a better response code that the API could provide?

@depahelix2021
Copy link
Author

Now instead of a 500, the API catches that issue with SQL constraints not allowing the addition, and returns back a more normal BadRequest.

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.

3 participants