mirror of
https://github.com/rustfs/rustfs.git
synced 2026-08-11 15:46:53 +00:00
fix: 优化endpoint
This commit is contained in:
@@ -1,7 +1,7 @@
|
||||
use s3s::S3Error;
|
||||
use s3s::S3ErrorCode;
|
||||
use s3s::StdError;
|
||||
|
||||
use std::fmt::Display;
|
||||
use std::panic::Location;
|
||||
|
||||
use tracing::error;
|
||||
@@ -44,6 +44,12 @@ impl From<Error> for S3Error {
|
||||
}
|
||||
}
|
||||
|
||||
impl Display for Error {
|
||||
fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
|
||||
self.source.fmt(f)
|
||||
}
|
||||
}
|
||||
|
||||
#[inline]
|
||||
#[track_caller]
|
||||
pub(crate) fn log(source: &dyn std::error::Error) {
|
||||
|
||||
Reference in New Issue
Block a user