Merge pull request #3006 from ethereum/exceptions

Always return a valid pointer in Exception::what()
This commit is contained in:
Alex Beregszaszi authored and GitHub committed 2017-10-02 15:46:25 +01:00
commit e7cea2f684
1 file changed
+3 -1
+3 -1
View File
@@ -27,7 +27,9 @@ char const* Exception::what() const noexcept
if (string const* cmt = comment())
return cmt->c_str();
else
return nullptr;
/// Boost accepts nullptr, but the C++ standard doesn't
/// and crashes on some platforms.
return std::exception::what();
}
string Exception::lineInfo() const