From c465eb3efc5a7bb0e35e6696a0e7e893ffcf805f Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Bogdan-=C8=98tefan=20Neac=C5=9Fu?= Date: Tue, 2 Jul 2024 08:58:48 +0000 Subject: [PATCH] Fix error type --- gateway/src/error.rs | 5 ++--- gateway/src/node/mod.rs | 2 +- 2 files changed, 3 insertions(+), 4 deletions(-) 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