mirror of
https://github.com/GreptimeTeam/greptimedb.git
synced 2026-01-07 05:42:57 +00:00
refactor: remove source and location in snafu display (#2428)
* refactor: remove source pt 1 * refactor: remove source pt 2 * refactor: remove source pt 3 * refactor: remove location pt 1 * refactor: remove location pt 2 * chore: remove rustc files * chore: fix error case * chore: fix test * chore: fix test * chore: fix cr issue Co-authored-by: fys <40801205+fengys1996@users.noreply.github.com> --------- Co-authored-by: fys <40801205+fengys1996@users.noreply.github.com>
This commit is contained in:
@@ -28,13 +28,13 @@ pub enum Error {
|
||||
#[snafu(display("Internal state error: {}", msg))]
|
||||
InternalState { msg: String },
|
||||
|
||||
#[snafu(display("IO error, source: {}", source))]
|
||||
#[snafu(display("IO error"))]
|
||||
Io {
|
||||
source: std::io::Error,
|
||||
location: Location,
|
||||
},
|
||||
|
||||
#[snafu(display("Auth failed, source: {}", source))]
|
||||
#[snafu(display("Auth failed"))]
|
||||
AuthBackend {
|
||||
location: Location,
|
||||
source: BoxedError,
|
||||
|
||||
Reference in New Issue
Block a user