Skip to content

Commit 0ab24f6

Browse files
committed
aardvark-dns: trim whitespaces from error text
Noticed this while testing my aardvark-dns changes. As we capture the full stderr it includes the final newline from the error text which will then be returned like this to podman. However because all podman always adds a newline to its error output on the cli it resulted in two newlines being printed. Not a bug deal but still unnecessary and confusing. Signed-off-by: Paul Holzinger <pholzing@redhat.com>
1 parent f17d903 commit 0ab24f6

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/dns/aardvark.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -143,7 +143,7 @@ impl Aardvark {
143143

144144
Err(std::io::Error::new(
145145
std::io::ErrorKind::Other,
146-
format!("aardvark-dns failed to start: {}", msg),
146+
format!("aardvark-dns failed to start: {}", msg.trim()),
147147
))
148148
}
149149

0 commit comments

Comments
 (0)