From 4dd2b17f1116ed0481444bff894f63e80676e973 Mon Sep 17 00:00:00 2001 From: Carlos Alexandro Becker Date: Tue, 23 Sep 2025 14:00:26 -0300 Subject: [PATCH] fix(lsp): improve error messages Signed-off-by: Carlos Alexandro Becker --- internal/lsp/client.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/internal/lsp/client.go b/internal/lsp/client.go index aedf2476918fd5394c4a876bf7cd5ec177348905..226d6c6f3896e29dcbc75c04bee23a34bdc85952 100644 --- a/internal/lsp/client.go +++ b/internal/lsp/client.go @@ -77,7 +77,7 @@ func New(ctx context.Context, name string, config config.LSPConfig) (*Client, er // Create the powernap client powernapClient, err := powernap.NewClient(clientConfig) if err != nil { - return nil, fmt.Errorf("failed to create powernap client: %w", err) + return nil, fmt.Errorf("failed to create lsp client: %w", err) } client := &Client{ @@ -98,7 +98,7 @@ func New(ctx context.Context, name string, config config.LSPConfig) (*Client, er // Initialize initializes the LSP client and returns the server capabilities. func (c *Client) Initialize(ctx context.Context, workspaceDir string) (*protocol.InitializeResult, error) { if err := c.client.Initialize(ctx, false); err != nil { - return nil, fmt.Errorf("failed to initialize powernap client: %w", err) + return nil, fmt.Errorf("failed to initialize the lsp client: %w", err) } // Convert powernap capabilities to protocol capabilities