🎨 Improve text

This commit is contained in:
Daniel 2025-01-02 09:39:02 +08:00
parent e9f33724b0
commit 6125603e38
No known key found for this signature in database
GPG key ID: 86211BA83DF03017
13 changed files with 26 additions and 12 deletions

View file

@ -648,6 +648,8 @@ func formatRepoErrorMsg(err error) string {
msgLowerCase := strings.ToLower(msg)
if strings.Contains(msgLowerCase, "permission denied") || strings.Contains(msg, "access is denied") {
msg = Conf.Language(33)
} else if strings.Contains(msgLowerCase, "region was not a valid DNS name") {
msg = Conf.language(254)
} else if strings.Contains(msgLowerCase, "device or resource busy") || strings.Contains(msg, "is being used by another") {
msg = fmt.Sprintf(Conf.Language(85), err)
} else if strings.Contains(msgLowerCase, "cipher: message authentication failed") {