|
|
@ -41,13 +41,9 @@ public: |
|
|
|
{ |
|
|
|
m_compilerStack.parse(_code); |
|
|
|
} |
|
|
|
catch (const std::exception& e) |
|
|
|
catch(boost::exception const& _e) |
|
|
|
{ |
|
|
|
std::string const* extra = boost::get_error_info<errinfo_comment>(e); |
|
|
|
std::string msg = std::string("Parsing contract failed with: ") + |
|
|
|
e.what() + std::string("\n"); |
|
|
|
if (extra) |
|
|
|
msg += *extra; |
|
|
|
auto msg = std::string("Parsing contract failed with: ") + boost::diagnostic_information(_e); |
|
|
|
BOOST_FAIL(msg); |
|
|
|
} |
|
|
|
std::string generatedInterfaceString = m_compilerStack.getMetadata("", DocumentationType::ABI_INTERFACE); |
|
|
|