mirror of
https://github.com/ethereum/solidity
synced 2023-10-03 13:03:40 +00:00
refactored struct message to use std::variant for _typeOrSeverity
This commit is contained in:
@@ -765,7 +765,10 @@ void CommandLineInterface::compile()
|
||||
catch (CompilerError const& _exception)
|
||||
{
|
||||
m_hasOutput = true;
|
||||
formatter.printExceptionInformation(_exception, Error::Type::CompilerError);
|
||||
formatter.printExceptionInformation(
|
||||
_exception,
|
||||
Error::errorSeverity(Error::Type::CompilerError)
|
||||
);
|
||||
solThrow(CommandLineExecutionError, "");
|
||||
}
|
||||
catch (Error const& _error)
|
||||
@@ -778,7 +781,7 @@ void CommandLineInterface::compile()
|
||||
else
|
||||
{
|
||||
m_hasOutput = true;
|
||||
formatter.printExceptionInformation(_error, _error.type());
|
||||
formatter.printExceptionInformation(_error, Error::errorSeverity(_error.type()));
|
||||
solThrow(CommandLineExecutionError, "");
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user