diff --git a/gateway/src/error.rs b/gateway/src/error.rs index 633d480c05..5f2f9d4299 100644 --- a/gateway/src/error.rs +++ b/gateway/src/error.rs @@ -194,9 +194,8 @@ pub enum GatewayError { #[error("wireguard not set")] WireguardNotSet, - #[cfg(all(feature = "wireguard", target_os = "linux"))] - #[error("failed to catch an interrupt: {source}")] - StdError { + #[error("failed to start authenticator: {source}")] + AuthenticatorStartError { source: Box, }, } diff --git a/gateway/src/node/mod.rs b/gateway/src/node/mod.rs index 533de6b23b..e6fc46443f 100644 --- a/gateway/src/node/mod.rs +++ b/gateway/src/node/mod.rs @@ -563,7 +563,7 @@ impl Gateway { Some( self.start_authenticator(shutdown.fork("wireguard")) .await - .map_err(|source| GatewayError::StdError { source })?, + .map_err(|source| GatewayError::AuthenticatorStartError { source })?, ) } else { None