mirror of
https://github.com/minio/minio.git
synced 2025-11-06 20:33:07 -05:00
fix: backend not reachable should be more descriptive (#13634)
This commit is contained in:
@@ -645,10 +645,12 @@ func (e UnsupportedMetadata) Error() string {
|
||||
}
|
||||
|
||||
// BackendDown is returned for network errors or if the gateway's backend is down.
|
||||
type BackendDown struct{}
|
||||
type BackendDown struct {
|
||||
Err string
|
||||
}
|
||||
|
||||
func (e BackendDown) Error() string {
|
||||
return "Backend down"
|
||||
return e.Err
|
||||
}
|
||||
|
||||
// isErrBucketNotFound - Check if error type is BucketNotFound.
|
||||
|
||||
Reference in New Issue
Block a user