Merge pull request #40606 from adam-bates/issue-40396_add_missing_json_errors

issue-40396 - Added missing error strings to JSON parsing when array …
This commit is contained in:
Rémi Verschelde 2020-07-23 10:01:33 +02:00 committed by GitHub
commit 2267caa4a1
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -371,6 +371,7 @@ Error JSON::_parse_array(Array &array, const CharType *p_str, int &index, int p_
need_comma = true;
}
r_err_str = "Expected ']'";
return ERR_PARSE_ERROR;
}
@ -433,6 +434,7 @@ Error JSON::_parse_object(Dictionary &object, const CharType *p_str, int &index,
}
}
r_err_str = "Expected '}'";
return ERR_PARSE_ERROR;
}