X-Git-Url: http://git.giacomolli.uk/onechat/blobdiff_plain/150d707b16a5495272dfb02d690d99bfae50c14e..2daf91497c2cc70d7156f7c0d99b1451933a818a:/compactor.go?ds=inline diff --git a/compactor.go b/compactor.go index e7a6866..efb183f 100644 --- a/compactor.go +++ b/compactor.go @@ -65,7 +65,7 @@ func (c *Compactor) Summarize(ctx context.Context, task Task) (string, error) { instructions, err := c.instructions() if err != nil { - return "", fmt.Errorf("compact node (%d, %d): %w", task.Level, task.Index, err) + return "", err } var first []any @@ -109,7 +109,7 @@ func (c *Compactor) Summarize(ctx context.Context, task Task) (string, error) { } if len(lines) == 0 { - return "", fmt.Errorf("compact node (%d, %d): %w", task.Level, task.Index, err) + return "", err } return compactorShortest(lines), nil