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

When throwing ConfigMissingError, keep error message succint #550

Closed
AbhinavMir opened this issue Feb 14, 2024 · 2 comments
Closed

When throwing ConfigMissingError, keep error message succint #550

AbhinavMir opened this issue Feb 14, 2024 · 2 comments

Comments

@AbhinavMir
Copy link

here, Solhint throws the error trace from Node itself, this is a little distracting because the error is of the format

<location of error>
<actual error>
<the entire trace>

But a better format IMO would be just showing the actual error and then presenting a potential fix.

To reproduce:

  1. .solhint.json
{
  "extends": "willThrowError"
}
  1. solhint <command>
@dbale-altoros
Copy link
Collaborator

thanks a lot @AbhinavMir for your input
sorry the delay

could you elaborate a little more ? I'm not getting your point

thanks

@dbale-altoros
Copy link
Collaborator

@AbhinavMir this is the error showing whenever the rulesets are not there

image

It is pretty straightforward:
ConfigMissingError: Failed to load config "solhint:default" to extend from

Due to the lack of answer i will close this and you can open a new one if needed

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

No branches or pull requests

2 participants