[wasm] Use `g_printerr` to emit errors in mini-wasm.c, so they show up wit… (#49838)
authorAnkit Jain <radical@gmail.com>
Sat, 20 Mar 2021 00:46:42 +0000 (20:46 -0400)
committerGitHub <noreply@github.com>
Sat, 20 Mar 2021 00:46:42 +0000 (19:46 -0500)
commit026b71db2b8f24d251fa24fee7497aec436593ed
tree078aac25015185564e04d2230ae2127ca8f18152
parent08d282c2e21be328120a6f3530b4d8044a1b4460
[wasm] Use `g_printerr` to emit errors in mini-wasm.c, so they show up wit… (#49838)

* [wasm] Use g_error to emit errors in mini-wasm.c, so they show up with traces in js console

* address review feedback

vargaz: printf in JIT code is mapped to the platform logging operation, so this one can stay as it is.

* Use g_printerr instead of g_error, as suggested by feedback
src/mono/mono/mini/mini-wasm.c