File tree Expand file tree Collapse file tree 1 file changed +9
-2
lines changed
Expand file tree Collapse file tree 1 file changed +9
-2
lines changed Original file line number Diff line number Diff line change 1313#include < cmath>
1414#include < cstddef>
1515#include < cstring>
16+ #include < iostream>
1617#include < sstream>
1718#include < utility>
1819
@@ -211,8 +212,14 @@ JSONCPP_NORETURN void throwLogicError(String const& msg) {
211212 throw LogicError (msg);
212213}
213214#else // !JSON_USE_EXCEPTION
214- JSONCPP_NORETURN void throwRuntimeError (String const & msg) { abort (); }
215- JSONCPP_NORETURN void throwLogicError (String const & msg) { abort (); }
215+ JSONCPP_NORETURN void throwRuntimeError (String const & msg) {
216+ std::cerr << msg << std::endl;
217+ abort ();
218+ }
219+ JSONCPP_NORETURN void throwLogicError (String const & msg) {
220+ std::cerr << msg << std::endl;
221+ abort ();
222+ }
216223#endif
217224
218225// //////////////////////////////////////////////////////////////////
You can’t perform that action at this time.
0 commit comments