Update missing unmanaged function callback error message
This commit is contained in:
@@ -1808,7 +1808,7 @@ void* GetStaticMethodPointer(const String& methodName)
|
||||
PROFILE_CPU();
|
||||
const int rc = get_function_pointer(NativeInteropTypeName, FLAX_CORECLR_STRING(methodName).Get(), UNMANAGEDCALLERSONLY_METHOD, nullptr, nullptr, &fun);
|
||||
if (rc != 0)
|
||||
LOG(Fatal, "Failed to get unmanaged function pointer for method {0}: 0x{1:x}", methodName.Get(), (unsigned int)rc);
|
||||
LOG(Fatal, "Failed to get unmanaged function pointer for method '{0}': 0x{1:x}", methodName, (unsigned int)rc);
|
||||
CachedFunctions.Add(methodName, fun);
|
||||
return fun;
|
||||
}
|
||||
@@ -2207,7 +2207,7 @@ void* GetStaticMethodPointer(const String& methodName)
|
||||
{
|
||||
const unsigned short errorCode = mono_error_get_error_code(&error);
|
||||
const char* errorMessage = mono_error_get_message(&error);
|
||||
LOG(Fatal, "mono_method_get_unmanaged_callers_only_ftnptr failed with error code 0x{0:x}, {1}", errorCode, String(errorMessage));
|
||||
LOG(Fatal, "Failed to get unmanaged function pointer for method '{0}': 0x{1:x}, {2}", methodName, errorCode, String(errorMessage));
|
||||
}
|
||||
mono_error_cleanup(&error);
|
||||
|
||||
|
||||
Reference in New Issue
Block a user