mirror of
https://github.com/ethereum/solidity
synced 2023-10-03 13:03:40 +00:00
Add SMTLogicError exception catches
This commit is contained in:
@@ -28,6 +28,7 @@
|
||||
#include <libyul/optimiser/Suite.h>
|
||||
#include <liblangutil/SourceReferenceFormatter.h>
|
||||
#include <libevmasm/Instruction.h>
|
||||
#include <libsmtutil/Exceptions.h>
|
||||
#include <libsolutil/JSON.h>
|
||||
#include <libsolutil/Keccak256.h>
|
||||
#include <libsolutil/CommonData.h>
|
||||
@@ -921,6 +922,16 @@ Json::Value StandardCompiler::compileSolidity(StandardCompiler::InputsAndSetting
|
||||
"Yul exception"
|
||||
));
|
||||
}
|
||||
catch (smtutil::SMTLogicError const& _exception)
|
||||
{
|
||||
errors.append(formatErrorWithException(
|
||||
_exception,
|
||||
false,
|
||||
"SMTLogicException",
|
||||
"general",
|
||||
"SMT logic exception"
|
||||
));
|
||||
}
|
||||
catch (util::Exception const& _exception)
|
||||
{
|
||||
errors.append(formatError(
|
||||
|
||||
Reference in New Issue
Block a user