The Wayback Machine - https://web.archive.org/web/20211001162527/https://github.com/ethereum/solidity/issues/11959
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

Clean up the helpers around errors #11959

Open
axic opened this issue Sep 14, 2021 · 0 comments
Open

Clean up the helpers around errors #11959

axic opened this issue Sep 14, 2021 · 0 comments

Comments

@axic
Copy link
Member

@axic axic commented Sep 14, 2021

For severity some places use strings, while others the enum.

Apparently it's also indirectly used by other places in the compiler, like CommandLineInterface.cpp, that do not adhere to the severity standard:

solc/CommandLineInterface.cpp:		formatter.printExceptionInformation(_exception, "Compiler error");
printExceptionInformation(SourceReferenceExtractor::extract(m_charStreamProvider, _exception, _severity));

Originally posted by @leonardoalt in #11606 (comment)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
Solidity
  
New issues
Linked pull requests

Successfully merging a pull request may close this issue.

None yet
2 participants