mirror of
https://github.com/ethereum/solidity
synced 2023-10-03 13:03:40 +00:00
CompilerStack: Extend inconsistent error sanity check to cover stopAfter: parsing as well
This commit is contained in:
parent
a15ef59eec
commit
b17757ea17
@ -1327,8 +1327,8 @@ Json::Value StandardCompiler::compileSolidity(StandardCompiler::InputsAndSetting
|
||||
|
||||
/// Inconsistent state - stop here to receive error reports from users
|
||||
if (
|
||||
(compilationFailed || !analysisSuccess) &&
|
||||
(errors.empty() && _inputsAndSettings.stopAfter >= CompilerStack::State::AnalysisSuccessful)
|
||||
(compilationFailed || analysisFailed || !parsingSuccess) &&
|
||||
errors.empty()
|
||||
)
|
||||
return formatFatalError(Error::Type::InternalCompilerError, "No error reported, but compilation failed.");
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user