Handle errors on initial connect

This commit is contained in:
Steven Fackler
2013-10-04 19:26:57 -07:00
parent 8a738365c7
commit 12c5ebc34b

View File

@@ -412,6 +412,8 @@ impl InnerPostgresConnection {
| AuthenticationSCMCredential
| AuthenticationGSS
| AuthenticationSSPI => return Some(UnsupportedAuthentication),
ErrorResponse { fields } =>
return Some(DbError(PostgresDbError::new(fields))),
_ => fail!()
}