From 84cd37f69a4b09f833ba2ed73a53fec10c28191d Mon Sep 17 00:00:00 2001 From: Andrey Nering Date: Thu, 23 Oct 2025 13:59:39 -0300 Subject: [PATCH] fix: add detail to error message to allow better debugging --- internal/agent/coordinator.go | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/internal/agent/coordinator.go b/internal/agent/coordinator.go index 76adc6f651733f0e80af92f63847ecee04efd7c1..16d6bf197978da0c9f676d402142a2d33aa623fa 100644 --- a/internal/agent/coordinator.go +++ b/internal/agent/coordinator.go @@ -6,6 +6,7 @@ import ( "context" "encoding/json" "errors" + "fmt" "io" "log/slog" "slices" @@ -605,7 +606,7 @@ func (c *coordinator) buildProvider(providerCfg config.ProviderConfig, model con case openaicompat.Name: return c.buildOpenaiCompatProvider(baseURL, apiKey, headers) default: - return nil, errors.New("provider type not supported") + return nil, fmt.Errorf("provider type not supported: %q", providerCfg.Type) } }