🎨 Improve upload asset to cloud error message

This commit is contained in:
Daniel 2024-05-14 00:01:04 +08:00
parent c20c644440
commit fe9ffed025
No known key found for this signature in database
GPG key ID: 86211BA83DF03017
7 changed files with 15 additions and 7 deletions

View file

@ -616,7 +616,9 @@ func uploadAssets2Cloud(assetPaths []string, bizType string) (err error) {
}
if limitSize < uint64(fi.Size()) {
logging.LogWarnf("file [%s] larger than limit size [%s], ignore uploading it", humanize.IBytes(limitSize), absAsset)
logging.LogWarnf("file [%s] larger than limit size [%s], ignore uploading it", absAsset, humanize.IBytes(limitSize))
msg := fmt.Sprintf(Conf.Language(247), filepath.Base(absAsset), humanize.IBytes(limitSize))
util.PushErrMsg(msg, 30000)
continue
}