Format error message like suggested in review

This commit is contained in:
Martin Algesten
2021-12-19 20:57:39 +01:00
parent d1a2c630f5
commit 75f6be8ff8

View File

@@ -352,7 +352,7 @@ pub(crate) fn connect_host(unit: &Unit, hostname: &str, port: u16) -> Result<Tcp
// TODO: Find a way to apply deadline to DNS lookup.
let sock_addrs = unit.resolver().resolve(&netloc).map_err(|e| {
ErrorKind::Dns
.msg(format!("failed to resove dns ({})", netloc))
.msg(format!("resolve dns name '{}'", netloc))
.src(e)
})?;