Skip to content

Commit

Permalink
🎨 Improve S3/WebDAV data sync config siyuan-note/siyuan#12923
Browse files Browse the repository at this point in the history
  • Loading branch information
88250 committed Oct 26, 2024
1 parent 32af20c commit 2e180bf
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion sync_lock.go
Original file line number Diff line number Diff line change
Expand Up @@ -177,7 +177,7 @@ func parseErr(err error) (bool, error) {
msg := strings.ToLower(err.Error())
if strings.Contains(msg, "requesttimetooskewed") || strings.Contains(msg, "request time and the current time is too large") {
return true, cloud.ErrSystemTimeIncorrect
} else if strings.Contains(msg, "unavailable") {
} else if strings.Contains(msg, "500") || strings.Contains(msg, "internal server error") || strings.Contains(msg, "503") || strings.Contains(msg, "unavailable") {
return true, cloud.ErrCloudServiceUnavailable
} else if strings.Contains(msg, "401") || strings.Contains(msg, "unauthorized") ||
strings.Contains(msg, "403") || strings.Contains(msg, "forbidden") {
Expand Down

0 comments on commit 2e180bf

Please sign in to comment.