mirror of
https://github.com/ethereum/solidity
synced 2023-10-03 13:03:40 +00:00
Add new info severity
This commit is contained in:
@@ -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();
|
||||
|
||||
Reference in New Issue
Block a user