mirror of
https://github.com/godotengine/godot.git
synced 2025-04-07 00:44:24 +08:00
issue-40396 - Added missing error strings to JSON parsing when array or object is never closed.
(cherry picked from commit 8f84dfa91d2eac33625432c0b49364df3251fae4)
This commit is contained in:
parent
53a3476fc2
commit
b35970b9a5
@ -386,6 +386,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;
|
||||
}
|
||||
|
||||
@ -453,6 +454,7 @@ Error JSON::_parse_object(Dictionary &object, const CharType *p_str, int &index,
|
||||
}
|
||||
}
|
||||
|
||||
r_err_str = "Expected '}'";
|
||||
return ERR_PARSE_ERROR;
|
||||
}
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user