From 56925b9c28420d80dc343fe801177da737278d32 Mon Sep 17 00:00:00 2001 From: "Andrii Doroshenko (Xrayez)" Date: Thu, 31 Oct 2019 13:15:44 +0200 Subject: Provide and print error messages for JSON parsing Core is not touched, only for binding and scripting. --- modules/gdscript/gdscript_functions.cpp | 1 + 1 file changed, 1 insertion(+) (limited to 'modules/gdscript/gdscript_functions.cpp') diff --git a/modules/gdscript/gdscript_functions.cpp b/modules/gdscript/gdscript_functions.cpp index c4c7ba5ef7..185eb6c3fc 100644 --- a/modules/gdscript/gdscript_functions.cpp +++ b/modules/gdscript/gdscript_functions.cpp @@ -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; -- cgit v1.2.3