mirror of
https://github.com/GreptimeTeam/greptimedb.git
synced 2026-08-18 03:58:29 +00:00
refactor: remove useless error (#1624)
* refactor: remove useless * fix: remove useless error variant
This commit is contained in:
@@ -160,9 +160,6 @@ pub enum Error {
|
||||
source: common_datasource::error::Error,
|
||||
},
|
||||
|
||||
#[snafu(display("Unsupported file format: {}", format))]
|
||||
UnsupportedFileFormat { format: String, location: Location },
|
||||
|
||||
#[snafu(display("Failed to parse file format: {}", source))]
|
||||
ParseFileFormat {
|
||||
#[snafu(backtrace)]
|
||||
@@ -197,7 +194,6 @@ impl ErrorExt for Error {
|
||||
| ParseFloat { .. }
|
||||
| MissingRequiredField { .. }
|
||||
| BuildRegex { .. }
|
||||
| UnsupportedFileFormat { .. }
|
||||
| ConvertSchema { .. } => StatusCode::InvalidArguments,
|
||||
|
||||
BuildBackend { .. } | ListObjects { .. } => StatusCode::StorageUnavailable,
|
||||
|
||||
Reference in New Issue
Block a user