]> git.giacomolli.uk - onechat/blobdiff - probe.go
Complete context on forwarded local errors
[onechat] / probe.go
index a1ee38d17d6e43ff94c994e0c3a8f61d3b86f627..d896fcb0f534929fe1fb9df0fd0909ab3263e077 100644 (file)
--- a/probe.go
+++ b/probe.go
@@ -42,7 +42,12 @@ func (s ProbeSlotSummarizer) Summarize(ctx context.Context, task Task) (string,
                <-s.slots
        }()
 
-       return s.inner.Summarize(ctx, task)
+       text, err := s.inner.Summarize(ctx, task)
+       if err != nil {
+               return text, fmt.Errorf("summarize probe node: %w", err)
+       }
+
+       return text, nil
 }
 
 // probe runs "onechat probe LOG COUNT [BUILDS]". It appends the first COUNT