mirror of
https://github.com/godotengine/godot.git
synced 2025-11-03 15:11:19 +00:00
Provide and print error messages for JSON parsing
Core is not touched, only for binding and scripting.
This commit is contained in:
parent
aa96481c8f
commit
56925b9c28
2 changed files with 4 additions and 0 deletions
|
|
@ -1274,6 +1274,7 @@ void GDScriptFunctions::call(Function p_func, const Variant **p_args, int p_arg_
|
|||
|
||||
if (err != OK) {
|
||||
r_ret = Variant();
|
||||
ERR_PRINTS(vformat("Error parsing JSON at line %s: %s", errl, errs));
|
||||
}
|
||||
|
||||
} break;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue