Join GitHub today
GitHub is home to over 28 million developers working together to host and review code, manage projects, and build software together.
Sign upPanic while formatting an error when Pg connection is reset #1255
Comments
jethrogb
changed the title from
Panic formatting error when Postgres DB connection is closed unexpectedly
to
Panic while formatting an error when Pg connection is reset
Oct 11, 2017
sgrif
added this to the 1.0 milestone
Oct 11, 2017
This comment has been minimized.
|
This is definitely a blocker for 1.0 |
This comment has been minimized.
|
Hm... I get this when testing locally: |
This comment has been minimized.
|
That error is coming from the postgres backend ( |
added a commit
that referenced
this issue
Oct 16, 2017
added a commit
that referenced
this issue
Oct 16, 2017
sgrif
referenced this issue
Oct 16, 2017
Merged
Ensure PG results always have an error message #1260
sgrif
closed this
in
#1260
Oct 17, 2017
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
jethrogb commentedOct 11, 2017
•
edited
Problem Description
When a Postgres database connection is closed unexpectedly, trying to debug-format the error returned by Diesel panics. Here's a simple test program (using a table named
config):Have the DB server running before starting the program. After you see an
Ok(...)line, forcefully terminate the DB server, for example usingkill -9. I'm getting the following panic:Setup
Versions
Feature Flags