1
0
Fork 0
mirror of https://github.com/chrislusf/seaweedfs synced 2024-07-02 07:06:44 +02:00

fix possible error case

This commit is contained in:
Chris Lu 2021-09-27 23:59:45 -07:00
parent 2e9372dcf7
commit 040443e2d1

View file

@ -33,6 +33,8 @@ func (f *Filer) appendToFile(targetFile string, data []byte) error {
Gid: OS_GID, Gid: OS_GID,
}, },
} }
} else if err != nil {
return fmt.Errorf("find %s: %v", fullpath, err)
} else { } else {
offset = int64(TotalSize(entry.Chunks)) offset = int64(TotalSize(entry.Chunks))
} }