diff --git a/core/object/script_language_extension.h b/core/object/script_language_extension.h index 5f3a70cad840..00ab1cd6c01e 100644 --- a/core/object/script_language_extension.h +++ b/core/object/script_language_extension.h @@ -313,6 +313,9 @@ class ScriptLanguageExtension : public ScriptLanguage { ERR_CONTINUE(!err.has("message")); ScriptError serr; + if (err.has("path")) { + serr.path = err["path"]; + } serr.line = err["line"]; serr.column = err["column"]; serr.message = err["message"];