From 2f5ec0b848c40dd6b0224dcc6f7faeacd682f1ee Mon Sep 17 00:00:00 2001 From: Alex Date: Wed, 20 Sep 2017 00:04:34 +0300 Subject: [PATCH] Show last breath error Even when exceptions are not available exception object is still alive, so we may extract the message --- src/json.hpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/json.hpp b/src/json.hpp index 10af0e0d5..1d5268351 100644 --- a/src/json.hpp +++ b/src/json.hpp @@ -95,7 +95,7 @@ SOFTWARE. #define JSON_TRY try #define JSON_CATCH(exception) catch(exception) #else - #define JSON_THROW(exception) std::abort() + #define JSON_THROW(exception) std::cerr<