This commit is contained in:
Liang Ding 2023-05-15 14:56:12 +08:00
parent 7dbfa43de4
commit 0a10285167
No known key found for this signature in database
GPG key ID: 136F30F901A2231D
7 changed files with 14 additions and 8 deletions

View file

@ -27,6 +27,7 @@ import (
"time"
"github.com/88250/gulu"
"github.com/88250/lute/html"
"github.com/dustin/go-humanize"
"github.com/siyuan-note/dejavu"
"github.com/siyuan-note/dejavu/cloud"
@ -495,7 +496,7 @@ func ListCloudSyncDir() (syncDirs []*Sync, hSize string, err error) {
}
func formatRepoErrorMsg(err error) string {
msg := err.Error()
msg := html.EscapeString(err.Error())
if errors.Is(err, cloud.ErrCloudAuthFailed) {
msg = Conf.Language(31)
} else if errors.Is(err, cloud.ErrCloudObjectNotFound) {