mirror of
https://github.com/seaweedfs/seaweedfs.git
synced 2024-11-23 18:49:17 +08:00
adjust error message
This commit is contained in:
parent
6b2612690b
commit
be09d08eb6
@ -133,6 +133,9 @@ func (n *Needle) Append(w backend.BackendStorageFile, version Version) (offset u
|
||||
|
||||
if err == nil {
|
||||
_, err = w.WriteAt(bytesBuffer.Bytes(), int64(offset))
|
||||
if err != nil {
|
||||
err = fmt.Errorf("failed to write %d bytes to %s at offset %d: %v", actualSize, w.Name(), offset, err)
|
||||
}
|
||||
}
|
||||
|
||||
return offset, size, actualSize, err
|
||||
|
Loading…
Reference in New Issue
Block a user