summaryrefslogtreecommitdiffhomepage
diff options
context:
space:
mode:
authorJanito Vaqueiro Ferreira Filho <janito@mullvad.net>2019-08-03 12:02:54 +0000
committerJanito Vaqueiro Ferreira Filho <janito@mullvad.net>2019-08-06 12:30:41 +0000
commite71cf419a84d02598c6c71d0fe7d6621fbe00c17 (patch)
tree25e253be781b2e17628cd3d219fbbcba362281b6
parent530f8304cb3ef1493119b6e38c43b1db72809849 (diff)
downloadmullvadvpn-e71cf419a84d02598c6c71d0fe7d6621fbe00c17.tar.xz
mullvadvpn-e71cf419a84d02598c6c71d0fe7d6621fbe00c17.zip
Display error chain when retrying to connect
-rw-r--r--talpid-core/src/tunnel_state_machine/connecting_state.rs13
1 files changed, 9 insertions, 4 deletions
diff --git a/talpid-core/src/tunnel_state_machine/connecting_state.rs b/talpid-core/src/tunnel_state_machine/connecting_state.rs
index 98808308dc..4449226664 100644
--- a/talpid-core/src/tunnel_state_machine/connecting_state.rs
+++ b/talpid-core/src/tunnel_state_machine/connecting_state.rs
@@ -345,11 +345,16 @@ impl TunnelState for ConnectingState {
)
}
#[cfg(not(windows))]
- Err(tunnel::Error::WireguardTunnelMonitoringError(
- tunnel::wireguard::Error::StartWireguardError { status: -2 },
- )) => {
+ Err(
+ error @ tunnel::Error::WireguardTunnelMonitoringError(
+ tunnel::wireguard::Error::StartWireguardError { status: -2 },
+ ),
+ ) => {
log::warn!(
- "Retrying to connect after failing to start Wireguard tunnel"
+ "{}",
+ error.display_chain_with_msg(
+ "Retrying to connect after failing to start Wireguard tunnel"
+ )
);
DisconnectingState::enter(
shared_values,