[hot_reload] Give more info about why the runtime can't apply updates (#87880)
authorAleksey Kliger (λgeek) <alklig@microsoft.com>
Thu, 22 Jun 2023 19:04:23 +0000 (15:04 -0400)
committerGitHub <noreply@github.com>
Thu, 22 Jun 2023 19:04:23 +0000 (15:04 -0400)
commitba6da78bc8f4b2f2c59babe76b8accd78ece434e
tree38e4106e574e77622de87848e643ea790064e4a7
parente913e774f912344121d95b780fb719d71d576959
[hot_reload] Give more info about why the runtime can't apply updates (#87880)

* [hot_reload] Give more info about why the runtime can't apply updates

* rework hot_reload_update_enabled

   Add a version that always checks the environment variable and returns unexpected values back to the caller.

   Change the assembly_update_supported function to take a MonoError and set it to a detailed error message directly.
src/mono/mono/component/hot_reload.c