From 24567790d30e314ee519c8f3756b3514c0c3fd31 Mon Sep 17 00:00:00 2001 From: Emmanuele Bassi Date: Fri, 19 Mar 2010 15:45:24 +0000 Subject: parser: Add MISSING_COLON error We identify a missing ':' separator between an object member name and its value, so it would be a good thing to actually have an error code for that. --- json-glib/json-parser.c | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) (limited to 'json-glib/json-parser.c') diff --git a/json-glib/json-parser.c b/json-glib/json-parser.c index 3e00cb6..c16d874 100644 --- a/json-glib/json-parser.c +++ b/json-glib/json-parser.c @@ -597,8 +597,7 @@ json_parse_object (JsonParser *parser, { JSON_NOTE (PARSER, "Missing object member name separator"); - /* FIXME - MISSING_COLON */ - priv->error_code = JSON_PARSER_ERROR_PARSE; + priv->error_code = JSON_PARSER_ERROR_MISSING_COLON; g_free (name); json_object_unref (object); -- cgit v1.2.1