Skip to content

Fix RPC recipes errors being swallowed when in batch#7226

Merged
greg-at-moderne merged 1 commit intomainfrom
greg-fix-rpc-error-swallow
Apr 1, 2026
Merged

Fix RPC recipes errors being swallowed when in batch#7226
greg-at-moderne merged 1 commit intomainfrom
greg-fix-rpc-error-swallow

Conversation

@greg-at-moderne
Copy link
Copy Markdown
Contributor

@greg-at-moderne greg-at-moderne commented Apr 1, 2026

What's changed?

Making sure the recipe run exceptions are surfaced also in the batch RPC path (as they are in the "standard" path).

What's your motivation?

I had a problem with a JavaScript recipe executed via Moderne CLI. The recipe supposedly ran fine and made no changes. It was only during the debugging session when it turned out the recipe had a failure, but it was swallowed silently by one of the layers.

Testing performed

I've plugged the fix into Moderne CLI and observed the recipe to record a failure (but not a total crash as expected):

⚠ Found 1 errors while running the recipe. Look at the SourcesFileErrors data table for more details.

@greg-at-moderne greg-at-moderne self-assigned this Apr 1, 2026
@github-project-automation github-project-automation Bot moved this to In Progress in OpenRewrite Apr 1, 2026
@greg-at-moderne greg-at-moderne marked this pull request as ready for review April 1, 2026 11:33
@greg-at-moderne greg-at-moderne merged commit f9234ea into main Apr 1, 2026
1 check passed
@github-project-automation github-project-automation Bot moved this from In Progress to Done in OpenRewrite Apr 1, 2026
@greg-at-moderne greg-at-moderne deleted the greg-fix-rpc-error-swallow branch April 1, 2026 11:33
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

Archived in project

Development

Successfully merging this pull request may close these issues.

1 participant