Lots more Script unit test cases.

This commit is contained in:
Gavin Andresen
2012-05-24 17:32:09 -04:00
parent f04017f702
commit 6b8a17119e
3 changed files with 228 additions and 8 deletions

View File

@@ -102,7 +102,10 @@ read_json(const std::string& filename)
Value v;
if (!read_stream(ifs, v))
{
BOOST_ERROR("Cound not find/open " << filename);
if (ifs.fail())
BOOST_ERROR("Cound not find/open " << filename);
else
BOOST_ERROR("JSON syntax error in " << filename);
return Array();
}
if (v.type() != array_type)