@@ -177,8 +177,8 @@ pub enum ConnectError {
177177 ConnectParams ( Box < error:: Error + Sync + Send > ) ,
178178 /// An error from the Postgres server itself.
179179 Db ( Box < DbError > ) ,
180- /// An error initializing the SSL session.
181- Ssl ( Box < error:: Error + Sync + Send > ) ,
180+ /// An error initializing the TLS session.
181+ Tls ( Box < error:: Error + Sync + Send > ) ,
182182 /// An error communicating with the server.
183183 Io ( io:: Error ) ,
184184}
@@ -189,7 +189,7 @@ impl fmt::Display for ConnectError {
189189 match * self {
190190 ConnectError :: ConnectParams ( ref msg) => write ! ( fmt, ": {}" , msg) ,
191191 ConnectError :: Db ( ref err) => write ! ( fmt, ": {}" , err) ,
192- ConnectError :: Ssl ( ref err) => write ! ( fmt, ": {}" , err) ,
192+ ConnectError :: Tls ( ref err) => write ! ( fmt, ": {}" , err) ,
193193 ConnectError :: Io ( ref err) => write ! ( fmt, ": {}" , err) ,
194194 }
195195 }
@@ -200,15 +200,15 @@ impl error::Error for ConnectError {
200200 match * self {
201201 ConnectError :: ConnectParams ( _) => "Invalid connection parameters" ,
202202 ConnectError :: Db ( _) => "Error reported by Postgres" ,
203- ConnectError :: Ssl ( _) => "Error initiating SSL session" ,
203+ ConnectError :: Tls ( _) => "Error initiating SSL session" ,
204204 ConnectError :: Io ( _) => "Error communicating with the server" ,
205205 }
206206 }
207207
208208 fn cause ( & self ) -> Option < & error:: Error > {
209209 match * self {
210210 ConnectError :: ConnectParams ( ref err) |
211- ConnectError :: Ssl ( ref err) => Some ( & * * err) ,
211+ ConnectError :: Tls ( ref err) => Some ( & * * err) ,
212212 ConnectError :: Db ( ref err) => Some ( & * * err) ,
213213 ConnectError :: Io ( ref err) => Some ( err) ,
214214 }
0 commit comments