Skip to content

Commit

Permalink
Add error log for block write failed
Browse files Browse the repository at this point in the history
  • Loading branch information
杨赫然 committed Mar 14, 2024
1 parent 058b740 commit 98f96f3
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion fileserver/sync_api.go
Original file line number Diff line number Diff line change
Expand Up @@ -827,7 +827,7 @@ func putSendBlockCB(rsp http.ResponseWriter, r *http.Request) *appError {
}

if err := blockmgr.Write(storeID, blockID, r.Body); err != nil {
err := fmt.Errorf("Failed to close block %.8s:%s", storeID, blockID)
err := fmt.Errorf("Failed to write block %.8s:%s: %v", storeID, blockID, err)
return &appError{err, "", http.StatusInternalServerError}
}

Expand Down

0 comments on commit 98f96f3

Please sign in to comment.