summaryrefslogtreecommitdiff
path: root/src/json.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/json.c')
-rw-r--r--src/json.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/src/json.c b/src/json.c
index 1c9bf6d49bd..6d822224b21 100644
--- a/src/json.c
+++ b/src/json.c
@@ -254,10 +254,13 @@ json_parse_error (const json_error_t *error)
{
case json_error_premature_end_of_input:
symbol = Qjson_end_of_file;
+ break;
case json_error_end_of_input_expected:
symbol = Qjson_trailing_content;
+ break;
default:
symbol = Qjson_parse_error;
+ break;
}
#else
if (json_has_suffix (error->text, "expected near end of file"))