Kaynağa Gözat

fix the error output while size of the part is invalid

hangzws 7 yıl önce
ebeveyn
işleme
4e2d9133e0
1 değiştirilmiş dosya ile 1 ekleme ve 1 silme
  1. 1 1
      oss/upload.go

+ 1 - 1
oss/upload.go

@@ -24,7 +24,7 @@ import (
 //
 func (bucket Bucket) UploadFile(objectKey, filePath string, partSize int64, options ...Option) error {
 	if partSize < MinPartSize || partSize > MaxPartSize {
-		return errors.New("oss: part size invalid range (1024KB, 5GB]")
+		return errors.New("oss: part size invalid range (100KB, 5GB]")
 	}
 
 	cpConf := getCpConfig(options)