Skip to content

Commit

Permalink
Explain init error
Browse files Browse the repository at this point in the history
  • Loading branch information
pjcdawkins committed Jan 17, 2025
1 parent 592dfc7 commit 13f4e45
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion internal/legacy/legacy.go
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down

0 comments on commit 13f4e45

Please sign in to comment.