Merge pull request #2567 from ethereum/refactorExceptions

Refactor exceptions and provide comment function.
This commit is contained in:
chriseth
2017-07-13 16:56:03 +02:00
committed by GitHub
9 changed files with 83 additions and 44 deletions
+1 -1
View File
@@ -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)
{