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

Feat: add information about the ability to use --max-n-steps #2869

Open
wants to merge 2 commits into
base: master
Choose a base branch
from

Conversation

Thibrac
Copy link

@Thibrac Thibrac commented Jan 23, 2025

Closes #2853

Introduced changes

  • Updated error to suggest using “--max-n-steps” in case of cairo_vm error

Checklist

  • Linked relevant issue
  • Updated relevant documentation
  • Added relevant tests
  • Performed self-review of the code
  • Added changes to CHANGELOG.md

Copy link
Contributor

@ddoktorski ddoktorski left a comment

Choose a reason for hiding this comment

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

@Thibrac

Thank you for your contribution. Please add a test or update an existing one to verify that the message is displayed correctly.

.contains("RunResources has no remaining steps")
{
message
.push_str("\nSuggestion: Try increasing the steps with --max-n-steps.");
Copy link
Contributor

Choose a reason for hiding this comment

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

Suggested change
.push_str("\nSuggestion: Try increasing the steps with --max-n-steps.");
.push_str("\nSuggestion: Consider using the flag `--max-n-steps` to increase allowed limit of steps");

Comment on lines +314 to +317
if error
.to_string()
.contains("RunResources has no remaining steps")
{
Copy link
Member

Choose a reason for hiding this comment

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

It is not the way to do that, you should match the type of the error instead (as described in the issue description)

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.

Show --max-n-steps in the error
3 participants