We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 5813ab1 commit 91f1553Copy full SHA for 91f1553
src/lib_json/json_value.cpp
@@ -13,6 +13,7 @@
13
#include <cmath>
14
#include <cstddef>
15
#include <cstring>
16
+#include <iostream>
17
#include <sstream>
18
#include <utility>
19
@@ -211,8 +212,14 @@ JSONCPP_NORETURN void throwLogicError(String const& msg) {
211
212
throw LogicError(msg);
213
}
214
#else // !JSON_USE_EXCEPTION
-JSONCPP_NORETURN void throwRuntimeError(String const& msg) { abort(); }
215
-JSONCPP_NORETURN void throwLogicError(String const& msg) { abort(); }
+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
221
222
223
#endif
224
225
// //////////////////////////////////////////////////////////////////
0 commit comments