This commit is contained in:
Liang Ding 2022-07-06 15:47:09 +08:00
parent 6e5278db66
commit f4b429bd27
No known key found for this signature in database
GPG key ID: 136F30F901A2231D

View file

@ -239,9 +239,8 @@ func UploadCloudSnapshot(tag, id string) (err error) {
uploadFileCount, uploadChunkCount, uploadBytes, err := repo.UploadTagIndex(tag, id, cloudInfo, map[string]interface{}{CtxPushMsg: CtxPushMsgToStatusBarAndProgress})
if nil != err {
if errors.Is(err, dejavu.ErrCloudBackupCountExceeded) {
err = errors.New(Conf.Language(154))
}
return
}
msg := fmt.Sprintf(Conf.Language(152), uploadFileCount, uploadChunkCount, byteCountSI(uploadBytes))