diff options
author | Ignacio Roldán Etcheverry <neikeq@users.noreply.github.com> | 2022-12-17 21:45:56 +0100 |
---|---|---|
committer | GitHub <noreply@github.com> | 2022-12-17 21:45:56 +0100 |
commit | d44d0cc0fd543da143010ad96978951facd87c1e (patch) | |
tree | 9b536d59097efb7ccce7c189ed0788cb75d25e10 /modules | |
parent | 10bc1d8710e8d6a3f58f2c4f5cc09604ef3ec51f (diff) | |
parent | 2be8cd6863f0fd5daa9a98f0a96d53bc8d23ebd4 (diff) |
Merge pull request #70210 from raulsntos/dotnet/script-not-found-error
C#: Add note about the class name in instantiate error
Diffstat (limited to 'modules')
-rw-r--r-- | modules/mono/csharp_script.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/modules/mono/csharp_script.cpp b/modules/mono/csharp_script.cpp index d0f52488bb..eca53c4831 100644 --- a/modules/mono/csharp_script.cpp +++ b/modules/mono/csharp_script.cpp @@ -2292,7 +2292,7 @@ bool CSharpScript::can_instantiate() const { // For tool scripts, this will never fire if the class is not found. That's because we // don't know if it's a tool script if we can't find the class to access the attributes. if (extra_cond && !valid) { - ERR_FAIL_V_MSG(false, "Cannot instance script because the associated class could not be found. Script: '" + get_path() + "'."); + ERR_FAIL_V_MSG(false, "Cannot instance script because the associated class could not be found. Script: '" + get_path() + "'. Make sure the script exists and contains a class definition with a name that matches the filename of the script exactly (it's case-sensitive)."); } return valid && extra_cond; |