mirror of
https://github.com/minio/minio.git
synced 2025-11-29 05:19:03 -05:00
Forbid the upload of files bigger than the memory backend capacity
This commit is contained in:
@@ -18,6 +18,10 @@ package drivers
|
||||
|
||||
import "fmt"
|
||||
|
||||
// InternalError - generic internal error
|
||||
type InternalError struct {
|
||||
}
|
||||
|
||||
// BackendError - generic disk backend error
|
||||
type BackendError struct {
|
||||
Path string
|
||||
@@ -127,6 +131,11 @@ func EmbedError(bucket, object string, err error) ImplementationError {
|
||||
}
|
||||
}
|
||||
|
||||
// Return string an error formatted as the given text
|
||||
func (e InternalError) Error() string {
|
||||
return "Internal error occured"
|
||||
}
|
||||
|
||||
// Return string an error formatted as the given text
|
||||
func (e ObjectNotFound) Error() string {
|
||||
return "Object not Found: " + e.Bucket + "#" + e.Object
|
||||
|
||||
Reference in New Issue
Block a user