@@ -177,8 +177,8 @@ pub enum ConnectError {
177
177
ConnectParams ( Box < error:: Error + Sync + Send > ) ,
178
178
/// An error from the Postgres server itself.
179
179
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 > ) ,
182
182
/// An error communicating with the server.
183
183
Io ( io:: Error ) ,
184
184
}
@@ -189,7 +189,7 @@ impl fmt::Display for ConnectError {
189
189
match * self {
190
190
ConnectError :: ConnectParams ( ref msg) => write ! ( fmt, ": {}" , msg) ,
191
191
ConnectError :: Db ( ref err) => write ! ( fmt, ": {}" , err) ,
192
- ConnectError :: Ssl ( ref err) => write ! ( fmt, ": {}" , err) ,
192
+ ConnectError :: Tls ( ref err) => write ! ( fmt, ": {}" , err) ,
193
193
ConnectError :: Io ( ref err) => write ! ( fmt, ": {}" , err) ,
194
194
}
195
195
}
@@ -200,15 +200,15 @@ impl error::Error for ConnectError {
200
200
match * self {
201
201
ConnectError :: ConnectParams ( _) => "Invalid connection parameters" ,
202
202
ConnectError :: Db ( _) => "Error reported by Postgres" ,
203
- ConnectError :: Ssl ( _) => "Error initiating SSL session" ,
203
+ ConnectError :: Tls ( _) => "Error initiating SSL session" ,
204
204
ConnectError :: Io ( _) => "Error communicating with the server" ,
205
205
}
206
206
}
207
207
208
208
fn cause ( & self ) -> Option < & error:: Error > {
209
209
match * self {
210
210
ConnectError :: ConnectParams ( ref err) |
211
- ConnectError :: Ssl ( ref err) => Some ( & * * err) ,
211
+ ConnectError :: Tls ( ref err) => Some ( & * * err) ,
212
212
ConnectError :: Db ( ref err) => Some ( & * * err) ,
213
213
ConnectError :: Io ( ref err) => Some ( err) ,
214
214
}
0 commit comments