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
|
/// Inconsistent state - stop here to receive error reports from users
|
||||||
if (
|
if (
|
||||||
(compilationFailed || !analysisSuccess) &&
|
(compilationFailed || analysisFailed || !parsingSuccess) &&
|
||||||
(errors.empty() && _inputsAndSettings.stopAfter >= CompilerStack::State::AnalysisSuccessful)
|
errors.empty()
|
||||||
)
|
)
|
||||||
return formatFatalError(Error::Type::InternalCompilerError, "No error reported, but compilation failed.");
|
return formatFatalError(Error::Type::InternalCompilerError, "No error reported, but compilation failed.");
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user