Refactor exceptions and provide comment function.

This commit is contained in:
chriseth
2017-07-13 11:34:03 +02:00
parent 757c500bda
commit 09e821619e
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)
{