summaryrefslogtreecommitdiff
path: root/modules
diff options
context:
space:
mode:
authorRĂ©mi Verschelde <rverschelde@gmail.com>2019-10-31 13:31:48 +0100
committerGitHub <noreply@github.com>2019-10-31 13:31:48 +0100
commit55fd63d9de05afd311c981df52bd50262aace9b5 (patch)
treecb18bf5e403929bf0654e87a5142b9a526c9748b /modules
parentaa96481c8fe350d7223304589f1256e2b9ae8e2b (diff)
parent56925b9c28420d80dc343fe801177da737278d32 (diff)
Merge pull request #33201 from Xrayez/json-err-print
Provide and print error messages for JSON parsing
Diffstat (limited to 'modules')
-rw-r--r--modules/gdscript/gdscript_functions.cpp1
1 files changed, 1 insertions, 0 deletions
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;