diff options
-rw-r--r-- | mono/metadata/loader.c | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/mono/metadata/loader.c b/mono/metadata/loader.c index 259c5f2f548..60d44d2d904 100644 --- a/mono/metadata/loader.c +++ b/mono/metadata/loader.c @@ -2428,9 +2428,8 @@ mono_method_signature_checked (MonoMethod *m, MonoError *error) signature = mono_metadata_parse_method_signature_full (img, container, idx, sig_body, NULL); if (!signature) { - mono_loader_clear_error (); + mono_error_set_from_loader_error (error); mono_loader_unlock (); - mono_error_set_method_load (error, m->klass, m->name, ""); return NULL; } |