Browse Source

adjust error message

pull/6267/head
chrislu 1 month ago
parent
commit
be09d08eb6
  1. 3
      weed/storage/needle/needle_write.go

3
weed/storage/needle/needle_write.go

@ -133,6 +133,9 @@ func (n *Needle) Append(w backend.BackendStorageFile, version Version) (offset u
if err == nil { if err == nil {
_, err = w.WriteAt(bytesBuffer.Bytes(), int64(offset)) _, 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 return offset, size, actualSize, err

Loading…
Cancel
Save