From 12c5ebc34b426d94dbe07a3de8524a8f879f0a88 Mon Sep 17 00:00:00 2001 From: Steven Fackler Date: Fri, 4 Oct 2013 19:26:57 -0700 Subject: [PATCH] Handle errors on initial connect --- src/postgres/lib.rs | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/postgres/lib.rs b/src/postgres/lib.rs index 2ca74b5a..ff12cf40 100644 --- a/src/postgres/lib.rs +++ b/src/postgres/lib.rs @@ -412,6 +412,8 @@ impl InnerPostgresConnection { | AuthenticationSCMCredential | AuthenticationGSS | AuthenticationSSPI => return Some(UnsupportedAuthentication), + ErrorResponse { fields } => + return Some(DbError(PostgresDbError::new(fields))), _ => fail!() }