aboutsummaryrefslogtreecommitdiffstats
path: root/test/libsolidity/ErrorCheck.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'test/libsolidity/ErrorCheck.cpp')
-rw-r--r--test/libsolidity/ErrorCheck.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/test/libsolidity/ErrorCheck.cpp b/test/libsolidity/ErrorCheck.cpp
index 9b0f9fb7..b1e94061 100644
--- a/test/libsolidity/ErrorCheck.cpp
+++ b/test/libsolidity/ErrorCheck.cpp
@@ -28,11 +28,11 @@ 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)
{
- cout << "Expected message \"" << _substr << "\" but found" << *errorMessage << endl;
+ cout << "Expected message \"" << _substr << "\" but found \"" << *errorMessage << "\".\n";
return false;
}
return true;