[metadata] Propagate error in mono_runtime_try_invoke_array (mono/mono#18382)
authorRyan Lucia <rylucia@microsoft.com>
Wed, 8 Jan 2020 20:57:16 +0000 (15:57 -0500)
committerGitHub <noreply@github.com>
Wed, 8 Jan 2020 20:57:16 +0000 (15:57 -0500)
commit6d175d23424e5cb4a8356641b823defe206dcf52
tree09aa9b837418be6f20d825f6b7a3d7d9baaa499b
parent6891bc536efcaa85561965be71798c1032ca1250
[metadata] Propagate error in mono_runtime_try_invoke_array (mono/mono#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.

Commit migrated from https://github.com/mono/mono/commit/1178ab3a1a48dbc831ecd905a7d88bfd417e0d73
src/mono/mono/metadata/object.c