connect: tidy error enum (#1712)
This commit is contained in:
@@ -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)
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
@@ -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")]
|
||||
|
||||
Reference in New Issue
Block a user