G O-10: a send refused at its sent store's cap names the store (issue 1966)

The error of a refused put said only the label, so a reply or event failed at
a full sent store did not say which store was full.

Builds: design 47 G §477, §59, §181

Claude-Session: https://claude.ai/code/session_01JG73KEq4zoDfM9WtYpcQgZ
This commit is contained in:
2026-11-11 15:47:42 +01:00
parent c6a6bec3ab
commit 9ff68fede4
2 changed files with 13 additions and 1 deletions
+2 -1
View File
@@ -110,7 +110,8 @@ func (s Sender) Send(label string, body []byte) ([]byte, error) {
}
ref := Ref{Store: s.Store, Object: objectName(label, digestOf(body)), Size: int64(len(body)), Digest: digestOf(body), Form: FormVersion}
if err := s.Objects.Put(ref.Object, body); err != nil {
return nil, fmt.Errorf("the object for %s: %w", label, err)
// A send refused at its store's cap fails loudly, naming the store (design 47 G §477, §59).
return nil, fmt.Errorf("the object for %s in the sent store %s: %w", label, s.Store, err)
}
if s.Log != nil {
if err := s.record(ref.Object); err != nil {