Browse Source

:art: sync logging

Liang Ding 3 years ago
parent
commit
c25c786ae3
1 changed files with 4 additions and 0 deletions
  1. 4 0
      kernel/model/sync.go

+ 4 - 0
kernel/model/sync.go

@@ -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") {