More Natspec JSON export tests and better error reporting

This commit is contained in:
Lefteris Karapetsas 2014-12-02 10:41:18 +01:00
parent 0f79ed6957
commit e411449219

View File

@ -134,7 +134,7 @@ string const& CompilerStack::getDocumentation()
if (m_documentation.empty())
{
Json::Value doc;
Json::Value methods;
Json::Value methods(Json::objectValue);
vector<FunctionDefinition const*> exportedFunctions = m_contractASTNode->getInterfaceFunctions();
for (FunctionDefinition const* f: exportedFunctions)