adjust error message

This commit is contained in:
chrislu 2024-11-20 23:49:01 -08:00
parent 6b2612690b
commit be09d08eb6

View File

@ -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