connect: tidy error enum (#1712)

This commit is contained in:
Jon Häggblad
2022-10-26 17:26:31 +02:00
committed by GitHub
parent 56cf181770
commit 0d399f7d70
2 changed files with 1 additions and 7 deletions
+1 -1
View File
@@ -90,7 +90,7 @@ impl Config {
pub fn config_file_location(id: &str) -> Result<PathBuf> {
Socks5Config::try_default_config_file_path(Some(id))
.ok_or(BackendError::CouldNotGetFilename)
.ok_or(BackendError::CouldNotGetConfigFilename)
}
}
-6
View File
@@ -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")]