diff options
author | Gavin Andresen <gavinandresen@gmail.com> | 2012-05-24 17:32:09 -0400 |
---|---|---|
committer | Gavin Andresen <gavinandresen@gmail.com> | 2012-05-24 17:32:09 -0400 |
commit | 6b8a17119e30ddc5dd5b92ed77da49740c495ed6 (patch) | |
tree | 79bc0e61537dc88662f73c8aa0254fb4ac5d7bcd /src/test/script_tests.cpp | |
parent | f04017f702e36563b9ba05b3fede216767de580a (diff) |
Lots more Script unit test cases.
Diffstat (limited to 'src/test/script_tests.cpp')
-rw-r--r-- | src/test/script_tests.cpp | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/src/test/script_tests.cpp b/src/test/script_tests.cpp index a5fdaaa4c2..a30e3ccbc2 100644 --- a/src/test/script_tests.cpp +++ b/src/test/script_tests.cpp @@ -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) |