diff options
author | Rémi Verschelde <rverschelde@gmail.com> | 2024-01-04 16:38:58 +0100 |
---|---|---|
committer | Rémi Verschelde <rverschelde@gmail.com> | 2024-01-04 16:38:58 +0100 |
commit | 2bffa3cbc568045bcbf9ae28914126978854d8bb (patch) | |
tree | e205fe0626c05ded2aaca2666d598d6aa93b2f46 /modules/gdscript/gdscript_analyzer.cpp | |
parent | ad3e5a949e433b23034b41f05adce65fd3d4b791 (diff) | |
parent | 5efbed51cce62cdd9a2927638030e76bf688cdf7 (diff) | |
download | redot-engine-2bffa3cbc568045bcbf9ae28914126978854d8bb.tar.gz |
Merge pull request #82639 from golfinq/gdscript-improve-indexing-error
GDScript: Improve error messages for invalid indexing
Diffstat (limited to 'modules/gdscript/gdscript_analyzer.cpp')
-rw-r--r-- | modules/gdscript/gdscript_analyzer.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/modules/gdscript/gdscript_analyzer.cpp b/modules/gdscript/gdscript_analyzer.cpp index cf537bde16..b245df15a6 100644 --- a/modules/gdscript/gdscript_analyzer.cpp +++ b/modules/gdscript/gdscript_analyzer.cpp @@ -3636,7 +3636,7 @@ void GDScriptAnalyzer::reduce_identifier_from_base(GDScriptParser::IdentifierNod switch (base.builtin_type) { case Variant::NIL: { if (base.is_hard_type()) { - push_error(vformat(R"(Invalid get index "%s" on base Nil)", name), p_identifier); + push_error(vformat(R"(Cannot get property "%s" on a null object.)", name), p_identifier); } return; } |