X-Git-Url: http://www.project-moonshot.org/gitweb/?a=blobdiff_plain;f=mech_eap%2Futil_json.cpp;h=76cf31cedbca522e9b17baeceb6afb529c54082a;hb=356f57f457c203b00593eaa989129a3fd53ed334;hp=9b4b9d1f70e9e6ef880396d7ea4474a65b3c651f;hpb=5dc0ae5c9f3f4873b3ec34a403c224beaae305dd;p=moonshot.git 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)