gateway-azure: Return right error when Part size is > 100MB (#4652)

This commit is contained in:
Krishna Srinivas
2017-07-12 16:42:14 -07:00
committed by Dee Koder
parent c3dd7c1f6c
commit ce7c9c651d
3 changed files with 11 additions and 0 deletions

View File

@@ -343,6 +343,13 @@ func (e PartTooSmall) Error() string {
return fmt.Sprintf("Part size for %d should be atleast 5MB", e.PartNumber)
}
// PartTooBig returned if size of part is bigger than the allowed limit.
type PartTooBig struct{}
func (e PartTooBig) Error() string {
return "Part size bigger than the allowed limit"
}
// NotImplemented If a feature is not implemented
type NotImplemented struct{}