From be09d08eb6bfb41266107e9ac3e29b2e60677680 Mon Sep 17 00:00:00 2001 From: chrislu Date: Wed, 20 Nov 2024 23:49:01 -0800 Subject: [PATCH] adjust error message --- weed/storage/needle/needle_write.go | 3 +++ 1 file changed, 3 insertions(+) diff --git a/weed/storage/needle/needle_write.go b/weed/storage/needle/needle_write.go index 51d3bcf40..95854bc27 100644 --- a/weed/storage/needle/needle_write.go +++ b/weed/storage/needle/needle_write.go @@ -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