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

Provide more transparent errors for generation failure #17

Open
eborden opened this issue Jul 10, 2017 · 0 comments · May be fixed by #72
Open

Provide more transparent errors for generation failure #17

eborden opened this issue Jul 10, 2017 · 0 comments · May be fixed by #72
Assignees

Comments

@eborden
Copy link
Contributor

eborden commented Jul 10, 2017

Currently Insert returns Maybe a. Nothing is coded for constraint failure, which triggers retry. If retry fails we throw a generation error. This error is opaque and does not provide any information for the user. We should be returning an Either _ a, so we can either pass the resulting exception or generate useful information for the user. This could be as simple as Either Text a or Either SomeException a.

@eborden eborden self-assigned this Jul 10, 2017
@pbrisbin pbrisbin moved this to To do in Open Source Jun 24, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
Status: 👜 To do
Development

Successfully merging a pull request may close this issue.

1 participant