[metadata] Propagate error in mono_runtime_try_invoke_array (#18382)
commit1178ab3a1a48dbc831ecd905a7d88bfd417e0d73
authorRyan Lucia <rylucia@microsoft.com>
Wed, 8 Jan 2020 20:57:16 +0000 (8 15:57 -0500)
committerGitHub <noreply@github.com>
Wed, 8 Jan 2020 20:57:16 +0000 (8 15:57 -0500)
tree0f935ccd7e5001a5a733047a27f73f1162c7c920
parent5dbc923cb31e7bc5f9206655a5c47934ae6cb835
[metadata] Propagate error in mono_runtime_try_invoke_array (#18382)

This was prompted by https://github.com/mono/mono/issues/18339, which seems to be failing to locate a native library and then hitting an assertion. We should propagate the error instead, so that if others run into something similar they can see what's actually going wrong instead of just getting a runtime crash.
mono/metadata/object.c