diff options
author | Rémi Verschelde <rverschelde@gmail.com> | 2022-10-05 20:49:35 +0200 |
---|---|---|
committer | golfinq <golfinqz@gmail.com> | 2023-10-02 14:23:11 -0400 |
commit | 5efbed51cce62cdd9a2927638030e76bf688cdf7 (patch) | |
tree | 1880ba45a1dce852ded71b665567d0382af5b933 /modules/gdscript/tests/scripts/runtime/errors | |
parent | 0ca8542329888e8dccba89d59d3b728090c29991 (diff) | |
download | redot-engine-5efbed51cce62cdd9a2927638030e76bf688cdf7.tar.gz |
GDScript: Improve error messages for invalid indexing
These errors are very common when using an invalid property name
or calling on an object of the wrong type, and the previous message
was a bit cryptic for users.
Co-authored-by: Rémi Verschelde <rverschelde@gmail.com>
Co-authored-by: golfinq <golfinqz@gmail.com>
Diffstat (limited to 'modules/gdscript/tests/scripts/runtime/errors')
-rw-r--r-- | modules/gdscript/tests/scripts/runtime/errors/constant_array_is_deep.out | 2 | ||||
-rw-r--r-- | modules/gdscript/tests/scripts/runtime/errors/constant_dictionary_is_deep.out | 2 |
2 files changed, 2 insertions, 2 deletions
diff --git a/modules/gdscript/tests/scripts/runtime/errors/constant_array_is_deep.out b/modules/gdscript/tests/scripts/runtime/errors/constant_array_is_deep.out index 2a97eaea44..c524a1ae6b 100644 --- a/modules/gdscript/tests/scripts/runtime/errors/constant_array_is_deep.out +++ b/modules/gdscript/tests/scripts/runtime/errors/constant_array_is_deep.out @@ -3,4 +3,4 @@ GDTEST_RUNTIME_ERROR >> on function: test() >> runtime/errors/constant_array_is_deep.gd >> 6 ->> Invalid set index '0' (on base: 'Dictionary') with value of type 'int' +>> Invalid assignment of property or key '0' with value of type 'int' on a base object of type 'Dictionary'. diff --git a/modules/gdscript/tests/scripts/runtime/errors/constant_dictionary_is_deep.out b/modules/gdscript/tests/scripts/runtime/errors/constant_dictionary_is_deep.out index c807db6b0c..cf51b0262d 100644 --- a/modules/gdscript/tests/scripts/runtime/errors/constant_dictionary_is_deep.out +++ b/modules/gdscript/tests/scripts/runtime/errors/constant_dictionary_is_deep.out @@ -3,4 +3,4 @@ GDTEST_RUNTIME_ERROR >> on function: test() >> runtime/errors/constant_dictionary_is_deep.gd >> 6 ->> Invalid set index '0' (on base: 'Array') with value of type 'int' +>> Invalid assignment of index '0' (on base: 'Array') with value of type 'int'. |