diff options
-rw-r--r-- | mono/metadata/object.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/mono/metadata/object.c b/mono/metadata/object.c index 0423ee94cc4..5f640a2d5fe 100644 --- a/mono/metadata/object.c +++ b/mono/metadata/object.c @@ -7178,7 +7178,7 @@ mono_value_box_handle (MonoDomain *domain, MonoClass *klass, gpointer value, Mon g_assert (value != NULL); if (G_UNLIKELY (m_class_is_byreflike (klass))) { char *full_name = mono_type_get_full_name (klass); - mono_error_set_execution_engine (error, "Cannot box IsByRefLike type %s", full_name); + mono_error_set_not_supported (error, "Cannot box IsByRefLike type %s", full_name); g_free (full_name); return NULL_HANDLE; } |