diff options
| -rw-r--r-- | talpid-core/src/tunnel/wireguard/mod.rs | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/talpid-core/src/tunnel/wireguard/mod.rs b/talpid-core/src/tunnel/wireguard/mod.rs index a35abf9583..06bbd74fa3 100644 --- a/talpid-core/src/tunnel/wireguard/mod.rs +++ b/talpid-core/src/tunnel/wireguard/mod.rs @@ -180,7 +180,7 @@ impl WireguardMonitor { match self.tunnel.lock().expect("Tunnel lock poisoned").take() { Some(tunnel) => { if let Err(e) = tunnel.stop() { - log::error!("Failed to stop tunnel - {}", e); + log::error!("{}", e.display_chain_with_msg("Failed to stop tunnel")); } } None => { @@ -250,7 +250,7 @@ impl CloseHandle { /// Closes a WireGuard tunnel pub fn close(&mut self) { if let Err(e) = self.chan.send(CloseMsg::Stop) { - log::trace!("Failed to send close message to wireguard tunnel - {}", e); + log::trace!("Failed to send close message to wireguard tunnel: {}", e); } } } @@ -281,7 +281,7 @@ pub enum TunnelError { FatalStartWireguardError, /// Failed to tear down wireguard tunnel. - #[error(display = "Failed to stop wireguard tunnel - {}", status)] + #[error(display = "Failed to stop wireguard tunnel. Status: {}", status)] StopWireguardError { /// Returned error code status: i32, |
