From 13f4e45b41cfecff23a13438643a792d43227607 Mon Sep 17 00:00:00 2001 From: Patrick Dawkins Date: Fri, 17 Jan 2025 19:20:01 +0000 Subject: [PATCH] Explain init error --- internal/legacy/legacy.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/internal/legacy/legacy.go b/internal/legacy/legacy.go index 380c544..ea36211 100644 --- a/internal/legacy/legacy.go +++ b/internal/legacy/legacy.go @@ -163,7 +163,7 @@ func (c *CLIWrapper) init() error { // Exec a legacy CLI command with the given arguments func (c *CLIWrapper) Exec(ctx context.Context, args ...string) error { if err := c.runInitOnce(); err != nil { - return err + return fmt.Errorf("failed to initialize PHP CLI: %w", err) } cmd := c.makeCmd(ctx, args)