Skip to content

Commit

Permalink
🎨 An error Failed to create data snapshot is occasionally reported …
Browse files Browse the repository at this point in the history
…during automatic data sync siyuan-note/siyuan#8998
  • Loading branch information
88250 committed Oct 28, 2023
1 parent baaf2d8 commit 0822490
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion repo.go
Original file line number Diff line number Diff line change
Expand Up @@ -235,7 +235,7 @@ func (repo *Repo) index(memo string, context map[string]interface{}) (ret *entit
err = filepath.Walk(repo.DataPath, func(path string, info os.FileInfo, err error) error {
if nil != err {
logging.LogErrorf("walk data failed: %s", err)
if os.IsNotExist(err) {
if os.IsNotExist(err) || strings.Contains(err.Error(), "no such file or directory") {
// An error `Failed to create data snapshot` is occasionally reported during automatic data sync https://github.com/siyuan-note/siyuan/issues/8998
return nil
}
Expand Down

0 comments on commit 0822490

Please sign in to comment.