X-Git-Url: https://git.giacomolli.uk/onechat/blobdiff_plain/80e348724041a694002fc38f57e8868b9b9a2be9..98d137c3e945a09f76e85bd18238558c668fdca4:/probe.go diff --git a/probe.go b/probe.go index a1ee38d..d896fcb 100644 --- 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