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

PG's documentation lies. Not all errors have messages #445

Closed
sgrif opened this Issue Sep 17, 2016 · 2 comments

Comments

Projects
None yet
1 participant
@sgrif
Member

sgrif commented Sep 17, 2016

We're treating all non-OK return codes as an error, and then later assuming that all errors have a message. However, fatal errors appear to be exempt from this, and we need to bubble that up, not panic.

@sgrif sgrif changed the title from Diesel panics if a fatal error is returned to PG's documentation lies. Not all errors have messages Sep 17, 2016

@sgrif

This comment has been minimized.

Member

sgrif commented Sep 17, 2016

Ok so a fatal error is actually the only kind of error... So the docs just straight up appear to be lying. For posterity, the error that causes this issue is a query with more than 34434 bind parameters.

@sgrif sgrif closed this Dec 10, 2016

@sgrif

This comment has been minimized.

Member

sgrif commented Dec 10, 2016

My assumptions here were wrong

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment