Skip to content

Commit 1d70e7f

Browse files
committed
Added usefull error message.
1 parent 0050594 commit 1d70e7f

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

Core/NativeCoreWrapper.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -85,7 +85,7 @@ protected static TDelegate GetFunctionDelegate<TDelegate>(IntPtr handle, string
8585
var address = NativeMethods.GetProcAddress(handle, function);
8686
if (address.IsNull())
8787
{
88-
throw new Exception();
88+
throw new Exception($"Function '{function}' not found.");
8989
}
9090
return Marshal.GetDelegateForFunctionPointer<TDelegate>(address);
9191
}

0 commit comments

Comments
 (0)