Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix(executor): map VM errors to custom errors #1529

Merged
merged 3 commits into from
Nov 15, 2023

Conversation

kkovaacs
Copy link
Contributor

@kkovaacs kkovaacs commented Nov 15, 2023

Otherwise we don't properly return those to the JSON-RPC client and log them on WARN log level instead.

None of these errors (apart from the anyhow::Error mapping) are internal issues but instead errors that were encountered during contract execution.

Closes #1530

@kkovaacs kkovaacs marked this pull request as ready for review November 15, 2023 08:51
@kkovaacs kkovaacs requested review from pierre-l and a team as code owners November 15, 2023 08:51
@Mirko-von-Leipzig
Copy link
Contributor

Could you create a bug issue for this to close?

Copy link
Contributor

@Mirko-von-Leipzig Mirko-von-Leipzig left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Otherwise we don't properly return those to the JSON-RPC client and log
them on WARN log level instead.

None of these errors (apart from the anyhow::Error mapping) are internal
issues but instead errors that were encountered during contract execution.
So that we don't litter logs with these errors.
@kkovaacs kkovaacs force-pushed the krisztian/exeuction-errors-should-be-custom branch from 62dfeb4 to 1016e34 Compare November 15, 2023 14:04
@kkovaacs kkovaacs merged commit 750c66b into main Nov 15, 2023
5 of 6 checks passed
@kkovaacs kkovaacs deleted the krisztian/exeuction-errors-should-be-custom branch November 15, 2023 14:06
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.

Pathfinder 0.9.5 logs contract execution errors on WARN level
3 participants