From 0d399f7d707f183bfbe88671b0e324aaa36f67d6 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Jon=20H=C3=A4ggblad?= Date: Wed, 26 Oct 2022 17:26:31 +0200 Subject: [PATCH] connect: tidy error enum (#1712) --- nym-connect/src-tauri/src/config/mod.rs | 2 +- nym-connect/src-tauri/src/error.rs | 6 ------ 2 files changed, 1 insertion(+), 7 deletions(-) diff --git a/nym-connect/src-tauri/src/config/mod.rs b/nym-connect/src-tauri/src/config/mod.rs index 923e544a52..f4d260ea57 100644 --- a/nym-connect/src-tauri/src/config/mod.rs +++ b/nym-connect/src-tauri/src/config/mod.rs @@ -90,7 +90,7 @@ impl Config { pub fn config_file_location(id: &str) -> Result { Socks5Config::try_default_config_file_path(Some(id)) - .ok_or(BackendError::CouldNotGetFilename) + .ok_or(BackendError::CouldNotGetConfigFilename) } } diff --git a/nym-connect/src-tauri/src/error.rs b/nym-connect/src-tauri/src/error.rs index 9ffaba93a6..b2b44ee345 100644 --- a/nym-connect/src-tauri/src/error.rs +++ b/nym-connect/src-tauri/src/error.rs @@ -36,12 +36,6 @@ pub enum BackendError { source: ClientCoreError, }, - #[error("State error")] - StateError, - #[error("Could not connect")] - CouldNotConnect, - #[error("Could not disconnect")] - CouldNotDisconnect, #[error("Could not send disconnect signal to the SOCKS5 client")] CoundNotSendDisconnectSignal, #[error("No service provider set")]