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 13
13
#include < cmath>
14
14
#include < cstddef>
15
15
#include < cstring>
16
+ #include < iostream>
16
17
#include < sstream>
17
18
#include < utility>
18
19
@@ -211,8 +212,14 @@ JSONCPP_NORETURN void throwLogicError(String const& msg) {
211
212
throw LogicError (msg);
212
213
}
213
214
#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
+ }
216
223
#endif
217
224
218
225
// //////////////////////////////////////////////////////////////////
You can’t perform that action at this time.
0 commit comments