diff options
author | RĂ©mi Verschelde <rverschelde@gmail.com> | 2020-09-29 21:14:06 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2020-09-29 21:14:06 +0200 |
commit | 475f4faead2f4ad397656e1bf334891cde550c09 (patch) | |
tree | 159be5f72d87e8e8f9a331017b22d05aa1739381 /modules/mono | |
parent | 1f73d122d8d25619833a59a979f43b47f8ed7d2e (diff) | |
parent | aca0cede679d2a500349baab2ad2f218f2ff0580 (diff) |
Merge pull request #42414 from eduardohmrodrigues/master
Fix error message when exporting a write-only property without a setter
Diffstat (limited to 'modules/mono')
-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; |