From ed9c0747fb6fa24e48c0bebcecc50c1f34811738 Mon Sep 17 00:00:00 2001 From: arcoRocks <33952704+arcoRocks@users.noreply.github.com> Date: Tue, 28 Nov 2017 08:06:46 +0100 Subject: [PATCH] Update json_wrap.hpp --- include/chaiscript/utility/json_wrap.hpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/include/chaiscript/utility/json_wrap.hpp b/include/chaiscript/utility/json_wrap.hpp index 7b3ef66f..ce3072c9 100644 --- a/include/chaiscript/utility/json_wrap.hpp +++ b/include/chaiscript/utility/json_wrap.hpp @@ -142,8 +142,8 @@ namespace chaiscript // not a dynamic object } - if (t_bv.is_null()) return json::JSON(); // a null value - + if (t_bv.is_null()) return json::JSON(); // a null value + throw std::runtime_error("Unknown object type to convert to JSON"); }