Skip to content

Commit

Permalink
Windows missing QrSyncError Enum variant build fix
Browse files Browse the repository at this point in the history
  • Loading branch information
Dominik Polzer committed Jul 28, 2023
1 parent 58a8ef5 commit ad8771d
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions src/http.rs
Original file line number Diff line number Diff line change
Expand Up @@ -100,9 +100,8 @@ impl QrSyncHttp {
fn find_public_ip(&self) -> QrSyncResult<String> {
match &self.ip_address {
Some(ip_address) => Ok(ip_address.to_string()),
None => Err(QrSyncError::new(
"On windows the command-line option --ip-address is mandatory",
Some("ip-discovery"),
None => Err(QrSyncError::Error(
"On windows the command-line option --ip-address is mandatory".into()
)),
}
}
Expand Down

0 comments on commit ad8771d

Please sign in to comment.