mirror of
https://github.com/ethereum/solidity
synced 2023-10-03 13:03:40 +00:00
Support catching YulException nicely in StandardCompiler
This commit is contained in:
parent
7e8f0a17bc
commit
9140a7d64e
@ -24,6 +24,7 @@
|
|||||||
|
|
||||||
#include <libsolidity/ast/ASTJsonConverter.h>
|
#include <libsolidity/ast/ASTJsonConverter.h>
|
||||||
#include <libyul/AssemblyStack.h>
|
#include <libyul/AssemblyStack.h>
|
||||||
|
#include <libyul/Exceptions.h>
|
||||||
#include <liblangutil/SourceReferenceFormatter.h>
|
#include <liblangutil/SourceReferenceFormatter.h>
|
||||||
#include <libevmasm/Instruction.h>
|
#include <libevmasm/Instruction.h>
|
||||||
#include <libdevcore/JSON.h>
|
#include <libdevcore/JSON.h>
|
||||||
@ -817,6 +818,16 @@ Json::Value StandardCompiler::compileSolidity(StandardCompiler::InputsAndSetting
|
|||||||
"Unimplemented feature (" + _exception.lineInfo() + ")"
|
"Unimplemented feature (" + _exception.lineInfo() + ")"
|
||||||
));
|
));
|
||||||
}
|
}
|
||||||
|
catch (yul::YulException const& _exception)
|
||||||
|
{
|
||||||
|
errors.append(formatErrorWithException(
|
||||||
|
_exception,
|
||||||
|
false,
|
||||||
|
"YulException",
|
||||||
|
"general",
|
||||||
|
"Yul exception"
|
||||||
|
));
|
||||||
|
}
|
||||||
catch (Exception const& _exception)
|
catch (Exception const& _exception)
|
||||||
{
|
{
|
||||||
errors.append(formatError(
|
errors.append(formatError(
|
||||||
|
Loading…
Reference in New Issue
Block a user