diff options
author | Rémi Verschelde <rverschelde@gmail.com> | 2023-06-18 16:28:36 +0200 |
---|---|---|
committer | Rémi Verschelde <rverschelde@gmail.com> | 2023-06-18 16:28:36 +0200 |
commit | fcc39d498b3dfc9037de27162de98778d7fcf0c6 (patch) | |
tree | f1e7b738c53281db9486fd7ceae01931d98c1aa5 /modules/gdscript/gdscript_parser.cpp | |
parent | 1a62f1e4fc853963664ab7afed0085159dcc8082 (diff) | |
parent | 0550f3682b071e51086a7e3a1c39e69d1ee7e026 (diff) | |
download | redot-engine-fcc39d498b3dfc9037de27162de98778d7fcf0c6.tar.gz |
Merge pull request #75051 from AleryBerry/fix-error-message-lua-style
GDScript: Fix error message for LUA-style dictionary
Diffstat (limited to 'modules/gdscript/gdscript_parser.cpp')
-rw-r--r-- | modules/gdscript/gdscript_parser.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/modules/gdscript/gdscript_parser.cpp b/modules/gdscript/gdscript_parser.cpp index de8a5c66f4..179f48c37f 100644 --- a/modules/gdscript/gdscript_parser.cpp +++ b/modules/gdscript/gdscript_parser.cpp @@ -2764,12 +2764,12 @@ GDScriptParser::ExpressionNode *GDScriptParser::parse_dictionary(ExpressionNode switch (dictionary->style) { case DictionaryNode::LUA_TABLE: if (key != nullptr && key->type != Node::IDENTIFIER && key->type != Node::LITERAL) { - push_error("Expected identifier or string as LUA-style dictionary key."); + push_error(R"(Expected identifier or string as Lua-style dictionary key (e.g "{ key = value }").)"); advance(); break; } if (key != nullptr && key->type == Node::LITERAL && static_cast<LiteralNode *>(key)->value.get_type() != Variant::STRING) { - push_error("Expected identifier or string as LUA-style dictionary key."); + push_error(R"(Expected identifier or string as Lua-style dictionary key (e.g "{ key = value }").)"); advance(); break; } |