mirror of
https://github.com/ethereum/solidity
synced 2023-10-03 13:03:40 +00:00
Merge pull request #2567 from ethereum/refactorExceptions
Refactor exceptions and provide comment function.
This commit is contained in:
@@ -28,7 +28,7 @@ using namespace std;
|
||||
|
||||
bool dev::solidity::searchErrorMessage(Error const& _err, std::string const& _substr)
|
||||
{
|
||||
if (string const* errorMessage = boost::get_error_info<dev::errinfo_comment>(_err))
|
||||
if (string const* errorMessage = _err.comment())
|
||||
{
|
||||
if (errorMessage->find(_substr) == std::string::npos)
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user