Skip to content

Conversation

@llambeau
Copy link
Contributor

When a file resource script fails (non-zero exit code or command not found), the raw execa error was propagating instead of being converted to a proper CommandExecError. This made it difficult to identify build failures.

Added try-catch around script execution to convert execa errors to CommandExecError with exit code and stderr message, consistent with ExecuteLocalCommandOperation.

When a file resource script fails (non-zero exit code or command not found),
the raw execa error was propagating instead of being converted to a proper
CommandExecError. This made it difficult to identify build failures.

Added try-catch around script execution to convert execa errors to
CommandExecError with exit code and stderr message, consistent with
ExecuteLocalCommandOperation.

Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants