refactor: remove useless error (#1624)

* refactor: remove useless

* fix: remove useless error variant
This commit is contained in:
Lei, HUANG
2023-05-22 22:55:27 +08:00
committed by GitHub
parent f64527da22
commit 8e7ec4626b
23 changed files with 24 additions and 395 deletions
+1 -9
View File
@@ -64,13 +64,6 @@ pub enum Error {
source: meta_srv::error::Error,
},
#[snafu(display("Failed to read config file: {}, source: {}", path, source))]
ReadConfig {
path: String,
source: std::io::Error,
location: Location,
},
#[snafu(display("Missing config, msg: {}", msg))]
MissingConfig { msg: String, location: Location },
@@ -175,8 +168,7 @@ impl ErrorExt for Error {
Error::ShutdownMetaServer { source } => source.status_code(),
Error::BuildMetaServer { source } => source.status_code(),
Error::UnsupportedSelectorType { source, .. } => source.status_code(),
Error::ReadConfig { .. }
| Error::MissingConfig { .. }
Error::MissingConfig { .. }
| Error::LoadLayeredConfig { .. }
| Error::IllegalConfig { .. }
| Error::InvalidReplCommand { .. }