Closed fishcakez closed 8 years ago
@josevalim we need to support this because the errors for Ecto.Adapters.Postgrex.storage_up etc are not good now. You can see tests pass for Postgrex with https://github.com/elixir-lang/ecto/tree/jf-db_conn-1_0 but the test is not strict enough to show it.
The message on error looks like:
"shutdown: %Postgrex.Error{connection_id: nil, message: nil, postgres: %{code: :invalid_password, file: \"auth.c\", line: \"285\", message: \"password authentication failed for user \\\"randomuser\\\"\", pg_code: \"28P01\", routine: \"auth_failed\", severity: \"FATAL\"}}"
Instead of just the message from the Postgrex.Error exception.
Nevermind :dancer:
This is awkward so lets have it as a feature :sweat_smile: