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:
parent
2e9372dcf7
commit
040443e2d1
|
@ -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))
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue