From 356f57f457c203b00593eaa989129a3fd53ed334 Mon Sep 17 00:00:00 2001 From: Luke Howard Date: Mon, 28 Mar 2011 17:14:15 +1100 Subject: [PATCH] cleanup --- mech_eap/util_json.cpp | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/mech_eap/util_json.cpp b/mech_eap/util_json.cpp index 9b4b9d1..76cf31c 100644 --- a/mech_eap/util_json.cpp +++ b/mech_eap/util_json.cpp @@ -51,20 +51,21 @@ #define JSON_CHECK_CONTAINER() do { \ if (!json_is_object(m_obj) && !json_is_array(m_obj)) { \ - std::string s("JSONObject object is not a container"); \ + std::string s("JSONObject is not a container"); \ throw new std::runtime_error(s); \ } \ } while (0) + #define JSON_CHECK_OBJECT() do { \ if (!json_is_object(m_obj)) { \ - std::string s("JSONObject object is not a dictionary"); \ + std::string s("JSONObject is not a dictionary"); \ throw new std::runtime_error(s); \ } \ } while (0) #define JSON_CHECK_ARRAY() do { \ if (!json_is_array(m_obj)) { \ - std::string s("JSONObject object is not an array"); \ + std::string s("JSONObject is not an array"); \ throw new std::runtime_error(s); \ } \ } while (0) -- 2.1.4