🎨 sync logging

This commit is contained in:
Liang Ding 2022-07-21 11:08:47 +08:00
parent 85e6085f11
commit c25c786ae3
No known key found for this signature in database
GPG key ID: 136F30F901A2231D

View file

@ -311,6 +311,10 @@ func ListCloudSyncDir() (syncDirs []*Sync, hSize string, err error) {
}
func formatErrorMsg(err error) string {
if errors.Is(err, dejavu.ErrCloudAuthFailed) {
return Conf.Language(31) + " v" + util.Ver
}
msg := err.Error()
msgLowerCase := strings.ToLower(msg)
if strings.Contains(msgLowerCase, "permission denied") || strings.Contains(msg, "access is denied") {