Skip to content

Commit

Permalink
added connection error path
Browse files Browse the repository at this point in the history
  • Loading branch information
gerwin3 committed Sep 14, 2023
1 parent fbdfe3f commit 2d8ec10
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/rave_rtsp/src/client.rs
Original file line number Diff line number Diff line change
Expand Up @@ -59,7 +59,7 @@ impl Client {
Err(err) => errors.push(err),
}
}
todo!()
Err(ClientError::Connect { errors })
} else {
Err(ClientError::Resolve {
name: host.to_string(),
Expand Down Expand Up @@ -223,7 +223,7 @@ pub enum ClientError {
/// URI missing protocol scheme.
UriMissingProtocolScheme,
/// Could not connect.
Connect { errors: Vec<std::io::Error> },
Connect { errors: Vec<ClientError> },
/// Could not resolve server.
Resolve { name: String },
/// Non-successful status code.
Expand Down

0 comments on commit 2d8ec10

Please sign in to comment.