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 MongoDB CRUD not throwing on error #2765

Merged
merged 4 commits into from
Feb 6, 2024

Conversation

WebFreak001
Copy link
Contributor

e.g. index constraints failing wasn't throwing any exceptions anymore - now throws a sub-class of MongoException (not MongoDBException)

@s-ludwig
Copy link
Member

s-ludwig commented Feb 5, 2024

We should at least have a one-liner added to the "insert-remove-aggregate" test for the positive case (checking if insertedCount is returned as expected). Not sure whether its easy to trigger an error, if there is an easy way, it would of course also be good to have a test case for that.

@WebFreak001
Copy link
Contributor Author

yes I will add tests later (in ~4h)

@WebFreak001
Copy link
Contributor Author

test added

@s-ludwig s-ludwig merged commit 6e97e47 into vibe-d:master Feb 6, 2024
38 checks passed
@WebFreak001 WebFreak001 deleted the fix-crud-erroring branch February 6, 2024 14:46
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