mirror of
https://github.com/minio/minio.git
synced 2025-11-29 13:28:17 -05:00
Implement proper errors for Multipart
This commit is contained in:
@@ -206,3 +206,14 @@ type InvalidRange struct {
|
||||
func (e InvalidRange) Error() string {
|
||||
return fmt.Sprintf("Invalid range start:%d length:%d", e.Start, e.Length)
|
||||
}
|
||||
|
||||
/// Multipart related errors
|
||||
|
||||
// InvalidUploadID invalid upload id
|
||||
type InvalidUploadID struct {
|
||||
UploadID string
|
||||
}
|
||||
|
||||
func (e InvalidUploadID) Error() string {
|
||||
return "Invalid upload id " + e.UploadID
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user