Merge pull request #11606 from ethereum/info_message

Add new info severity
This commit is contained in:
Leonardo
2021-09-14 14:30:07 +02:00
committed by GitHub
38 changed files with 191 additions and 97 deletions
+2 -2
View File
@@ -338,7 +338,7 @@ bool CompilerStack::parse()
Source& source = m_sources[path];
source.ast = parser.parse(*source.charStream);
if (!source.ast)
solAssert(!Error::containsOnlyWarnings(m_errorReporter.errors()), "Parser returned null but did not report error.");
solAssert(Error::containsErrors(m_errorReporter.errors()), "Parser returned null but did not report error.");
else
{
source.ast->annotation().path = path;
@@ -357,7 +357,7 @@ bool CompilerStack::parse()
m_stackState = Parsed;
else
m_stackState = ParsedAndImported;
if (!Error::containsOnlyWarnings(m_errorReporter.errors()))
if (Error::containsErrors(m_errorReporter.errors()))
m_hasError = true;
storeContractDefinitions();