add errors
This commit is contained in:
parent
09c269e98d
commit
c123051dd0
@ -31,6 +31,8 @@ var (
|
|||||||
ErrStoreBadChecksum = errors.New("checksum should be sha1 in hex format")
|
ErrStoreBadChecksum = errors.New("checksum should be sha1 in hex format")
|
||||||
ErrStoreBadChunkSize = errors.New("part file size should be 1MB max")
|
ErrStoreBadChunkSize = errors.New("part file size should be 1MB max")
|
||||||
ErrStoreWrongPartChecksum = errors.New("part file wrong checksum")
|
ErrStoreWrongPartChecksum = errors.New("part file wrong checksum")
|
||||||
|
ErrStoreBadPartNumber = errors.New("part should be a positive number")
|
||||||
|
ErrStoreMismatchChecksum = errors.New("part files doesn't match the original checksum")
|
||||||
)
|
)
|
||||||
|
|
||||||
func (s *Service) Error(c *gin.Context, code int, err error) {
|
func (s *Service) Error(c *gin.Context, code int, err error) {
|
||||||
|
Loading…
x
Reference in New Issue
Block a user