diff options
author | Eduardo Rodrigues <eduardohmrodrigues@gmail.com> | 2020-09-29 12:56:28 -0300 |
---|---|---|
committer | Eduardo Rodrigues <eduardohmrodrigues@gmail.com> | 2020-09-29 15:48:56 -0300 |
commit | aca0cede679d2a500349baab2ad2f218f2ff0580 (patch) | |
tree | 159be5f72d87e8e8f9a331017b22d05aa1739381 | |
parent | 1f73d122d8d25619833a59a979f43b47f8ed7d2e (diff) |
Fix error message when exporting a write-only property without a setter
-rw-r--r-- | modules/mono/csharp_script.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/modules/mono/csharp_script.cpp b/modules/mono/csharp_script.cpp index bbdec224f0..a05b38b8bf 100644 --- a/modules/mono/csharp_script.cpp +++ b/modules/mono/csharp_script.cpp @@ -2702,7 +2702,7 @@ bool CSharpScript::_get_member_export(IMonoClassMember *p_member, bool p_inspect if (!property->has_getter()) { #ifdef TOOLS_ENABLED if (exported) { - ERR_PRINT("Read-only property cannot be exported: '" + MEMBER_FULL_QUALIFIED_NAME(p_member) + "'."); + ERR_PRINT("Cannot export a property without a getter: '" + MEMBER_FULL_QUALIFIED_NAME(p_member) + "'."); } #endif return false; @@ -2710,7 +2710,7 @@ bool CSharpScript::_get_member_export(IMonoClassMember *p_member, bool p_inspect if (!property->has_setter()) { #ifdef TOOLS_ENABLED if (exported) { - ERR_PRINT("Write-only property (without getter) cannot be exported: '" + MEMBER_FULL_QUALIFIED_NAME(p_member) + "'."); + ERR_PRINT("Cannot export a property without a setter: '" + MEMBER_FULL_QUALIFIED_NAME(p_member) + "'."); } #endif return false; |