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

Confusing exception message at databases.py #72

Closed
wants to merge 1 commit into from

Conversation

robert-werner
Copy link

I've been confused of seeing 'Key already exists' right before I printed real exception.

@vercel
Copy link

vercel bot commented Jun 6, 2021

This pull request is being automatically deployed with Vercel (learn more).
To see the status of your deployment, click below or on the icon next to each commit.

🔍 Inspect: https://vercel.com/flortz/fastapi-crudrouter/J4zwrSQMDzSjjZd2aymbYLkHPcxf
✅ Preview: https://fastapi-crudrouter-git-fork-robert-werner-master-flortz.vercel.app

@awtkns
Copy link
Owner

awtkns commented Jun 8, 2021

Hi @robert-werner. This is actually working as intended. The idea behind not to show detailed error reports for database errors as I believe giving out details of your database setup to users is generally a bad idea.

However you do raise a fair point. it might be better to change it to simply "Integrity Error" as the message. #66

Copy link
Owner

@awtkns awtkns left a comment

Choose a reason for hiding this comment

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

Please see #66

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.

None yet

2 participants