Skip to content

Commit

Permalink
fix to string parse error
Browse files Browse the repository at this point in the history
  • Loading branch information
valesteban committed Nov 9, 2023
1 parent 40db16f commit e4d241a
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/resolver/lookup.rs
Original file line number Diff line number Diff line change
Expand Up @@ -162,7 +162,7 @@ pub async fn lookup_stub( //FIXME: podemos ponerle de nombre lookup_strategy y
Ok(response_message) => {
match DnsMessage::from_bytes(&response_message) {
Ok(dns_message) => dns_message,
Err(_) => Err(ResolverError::Parse("The name server was unable to interpret the query."))?,
Err(_) => Err(ResolverError::Parse("The name server was unable to interpret the query.".to_string()))?,
}
},
Err(_) => response,
Expand All @@ -175,7 +175,7 @@ pub async fn lookup_stub( //FIXME: podemos ponerle de nombre lookup_strategy y
Ok(response_message) => {
match DnsMessage::from_bytes(&response_message) {
Ok(dns_message) => dns_message,
Err(_) => Err(ResolverError::Parse("The name server was unable to interpret the query."))?,
Err(_) => Err(ResolverError::Parse("The name server was unable to interpret the query.".to_string()))?,
}
},
Err(_) => response,
Expand Down

0 comments on commit e4d241a

Please sign in to comment.