From f1b7e7c363e5a3d0910e7d3207aafa1fc8590d9c Mon Sep 17 00:00:00 2001 From: dahall Date: Thu, 17 Dec 2020 15:42:50 -0700 Subject: [PATCH] Added more detail to error msg in VanaraMarshalerAttribute --- Core/InteropServices/VanaraMarshaler.cs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Core/InteropServices/VanaraMarshaler.cs b/Core/InteropServices/VanaraMarshaler.cs index 125f9a79..c0f047e4 100644 --- a/Core/InteropServices/VanaraMarshaler.cs +++ b/Core/InteropServices/VanaraMarshaler.cs @@ -106,7 +106,7 @@ namespace Vanara.InteropServices if (marshalType is null) throw new ArgumentNullException(nameof(marshalType)); if (!typeof(IVanaraMarshaler).IsAssignableFrom(marshalType)) - throw new ArgumentException($"The supplied type must inherit from {nameof(IVanaraMarshaler)}.", nameof(marshalType)); + throw new ArgumentException($"The supplied type ({marshalType?.FullName}) must inherit from {nameof(IVanaraMarshaler)}.", nameof(marshalType)); MarshalType = marshalType; Cookie = cookie; }