mirror of
https://github.com/ElementsProject/elements.git
synced 2026-08-16 13:01:19 +02:00
Lots more Script unit test cases.
This commit is contained in:
parent
f04017f702
commit
6b8a17119e
3 changed files with 228 additions and 8 deletions
|
|
@ -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)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue