on main help sign in
fix(lsp): improve error messages

Signed-off-by: Carlos Alexandro Becker <caarlos0@users.noreply.github.com>

commit4dd2b17f1116ed0481444bff894f63e80676e973 authorCarlos Alexandro Becker <caarlos0@users.noreply.github.com> dateTue 23 Sep 2025, 14:00 (1 year ago) parent4926722
1 file changed+2−2
internal/lsp/client.go+2−2
internal/lsp/client.go+2−2
@@ -77,7 +77,7 @@ func New(ctx context.Context, name string, config config.LSPConfig) (*Client, er
7777 // Create the powernap client
7878 powernapClient, err := powernap.NewClient(clientConfig)
7979 if err != nil {
80− return nil, fmt.Errorf("failed to create powernap client: %w", err)
80+ return nil, fmt.Errorf("failed to create lsp client: %w", err)
8181 }
8282
8383 client := &Client{
@@ -98,7 +98,7 @@ func New(ctx context.Context, name string, config config.LSPConfig) (*Client, er
9898// Initialize initializes the LSP client and returns the server capabilities.
9999func (c *Client) Initialize(ctx context.Context, workspaceDir string) (*protocol.InitializeResult, error) {
100100 if err := c.client.Initialize(ctx, false); err != nil {
101− return nil, fmt.Errorf("failed to initialize powernap client: %w", err)
101+ return nil, fmt.Errorf("failed to initialize the lsp client: %w", err)
102102 }
103103
104104 // Convert powernap capabilities to protocol capabilities