Skip to content
Snippets Groups Projects
Commit 746ac14e authored by Jakob Olsson's avatar Jakob Olsson
Browse files

slight improvement to error msg on invalid types

parent 01638d4a
No related branches found
No related tags found
No related merge requests found
...@@ -183,7 +183,7 @@ int add_val(struct json_object *ptr, char *key, char *val, enum json_type type) ...@@ -183,7 +183,7 @@ int add_val(struct json_object *ptr, char *key, char *val, enum json_type type)
len = get_idx(key, idx, parsed_key); len = get_idx(key, idx, parsed_key);
j_val = dummy_val(val, type); j_val = dummy_val(val, type);
if (!j_val || !json_object_is_type(j_val, type)) { if (!j_val || !json_object_is_type(j_val, type)) {
fprintf(stderr, "Invalid input value!\n"); fprintf(stderr, "Invalid input value, parsed value and input type does not match!\n");
return -1; return -1;
} }
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment