diff options
author | Ignacio Roldán Etcheverry <neikeq@users.noreply.github.com> | 2022-11-26 04:38:11 +0100 |
---|---|---|
committer | GitHub <noreply@github.com> | 2022-11-26 04:38:11 +0100 |
commit | 68e3f49157b10b87504a88fc31d15c4d1c691ead (patch) | |
tree | 0a112ed8c9f81a30e2959c00478effc0e08962ad /modules/mono/glue/GodotSharp | |
parent | 50badbd1f4fc3d5406569a2cc0590bb12af659bc (diff) | |
parent | cfab6b0566b11ef7bf6d4ee34a5effcc75cf14cf (diff) |
Merge pull request #69191 from raulsntos/dotnet/no-throw
Fix `VariantUtils.UnsupportedType` method throwing
Diffstat (limited to 'modules/mono/glue/GodotSharp')
-rw-r--r-- | modules/mono/glue/GodotSharp/GodotSharp/Core/NativeInterop/VariantUtils.generic.cs | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/modules/mono/glue/GodotSharp/GodotSharp/Core/NativeInterop/VariantUtils.generic.cs b/modules/mono/glue/GodotSharp/GodotSharp/Core/NativeInterop/VariantUtils.generic.cs index db84175e17..694da6db77 100644 --- a/modules/mono/glue/GodotSharp/GodotSharp/Core/NativeInterop/VariantUtils.generic.cs +++ b/modules/mono/glue/GodotSharp/GodotSharp/Core/NativeInterop/VariantUtils.generic.cs @@ -6,7 +6,7 @@ namespace Godot.NativeInterop; public partial class VariantUtils { - private static Exception UnsupportedType<T>() => throw new InvalidOperationException( + private static Exception UnsupportedType<T>() => new InvalidOperationException( $"The type is not supported for conversion to/from Variant: '{typeof(T).FullName}'"); internal static class GenericConversion<T> |