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

Show more descriptive errors from snforge plugin #2712

Open
cptartur opened this issue Nov 26, 2024 · 0 comments
Open

Show more descriptive errors from snforge plugin #2712

cptartur opened this issue Nov 26, 2024 · 0 comments
Assignees
Labels
feature New feature request/description snforge

Comments

@cptartur
Copy link
Member

Currently, when args are incorrect, the error shown to the user doesn't indicate what the correct ones could be.

E.g.

error: Plugin diagnostic: #[should_panic] can be used with named attributes only
--> /Users/piotrmagiera/SWM/Dev/uwu/src/uwu.cairo[proc_test][proc___internal_config_statement]:2:1
#[should_panic("uwu")]
^********************^

Change the logic in snforge plugin to show more errors that clearly indicate what arguments are invalid and which options can be used instead.

@cptartur cptartur added feature New feature request/description snforge labels Nov 26, 2024
@cptartur cptartur self-assigned this Nov 26, 2024
@cptartur cptartur moved this to New in Starknet foundry Nov 26, 2024
@github-actions github-actions bot added the new label Nov 26, 2024
@cptartur cptartur removed the new label Nov 26, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
feature New feature request/description snforge
Projects
Status: New
Development

No branches or pull requests

1 participant