diff options
| author | Gavin Andresen <[email protected]> | 2012-05-24 17:32:09 -0400 |
|---|---|---|
| committer | Gavin Andresen <[email protected]> | 2012-05-24 17:32:09 -0400 |
| commit | 6b8a17119e30ddc5dd5b92ed77da49740c495ed6 (patch) | |
| tree | 79bc0e61537dc88662f73c8aa0254fb4ac5d7bcd /src/test/script_tests.cpp | |
| parent | More CScript unit tests. (diff) | |
| download | discoin-6b8a17119e30ddc5dd5b92ed77da49740c495ed6.tar.xz discoin-6b8a17119e30ddc5dd5b92ed77da49740c495ed6.zip | |
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 a5fdaaa4c..a30e3ccbc 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) |