mirror of
https://github.com/pgsty/minio.git
synced 2026-07-19 20:20:25 +03:00
object: handle Error responses and handle errDiskFull. (#1331)
This commit is contained in:
committed by
Anand Babu (AB) Periasamy
parent
6bc17a3aea
commit
e0f8fed011
+2
-2
@@ -413,8 +413,8 @@ func writeWebErrorResponse(w http.ResponseWriter, err error) {
|
||||
// Convert error type to api error code.
|
||||
var apiErrCode APIErrorCode
|
||||
switch err.(type) {
|
||||
case RootPathFull:
|
||||
apiErrCode = ErrRootPathFull
|
||||
case StorageFull:
|
||||
apiErrCode = ErrStorageFull
|
||||
case BucketNotFound:
|
||||
apiErrCode = ErrNoSuchBucket
|
||||
case BucketNameInvalid:
|
||||
|
||||
Reference in New Issue
Block a user