From f97aa2c924e59bc254e311b1dff8fb96261dbe87 Mon Sep 17 00:00:00 2001 From: Min Uk Lee Date: Wed, 13 Nov 2024 02:25:42 +0900 Subject: [PATCH] fix: Fix wrong schema error message --- cmd/opampsupervisor/supervisor/supervisor.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/cmd/opampsupervisor/supervisor/supervisor.go b/cmd/opampsupervisor/supervisor/supervisor.go index 163343bb5f0c..5d4e39a4f9b5 100644 --- a/cmd/opampsupervisor/supervisor/supervisor.go +++ b/cmd/opampsupervisor/supervisor/supervisor.go @@ -394,7 +394,7 @@ func (s *Supervisor) startOpAMPClient() error { case "http", "https": s.opampClient = client.NewHTTP(newLoggerFromZap(s.logger)) default: - return fmt.Errorf("unsupported scheme in server endpoint: %s", parsedURL.Scheme) + return fmt.Errorf("unsupported scheme in server endpoint: %q", parsedURL.Scheme) } s.logger.Debug("Connecting to OpAMP server...", zap.String("endpoint", s.config.Server.Endpoint), zap.Any("headers", s.config.Server.Headers))