[mono-error] Use g_assertf in mono_error_assert_ok implementation
commit77c68b952bc5dfa8016e14bd135b92aafd59665e
authorAleksey Kliger <alklig@microsoft.com>
Thu, 18 Jan 2018 21:35:26 +0000 (18 16:35 -0500)
committerAleksey Kliger (λgeek) <akliger@gmail.com>
Mon, 22 Jan 2018 15:27:06 +0000 (22 10:27 -0500)
treed9d3c1d8588da88ddf2da249478cad71b1c12199
parentd3763c6c1e1971fce5863e0147dea74911ecb990
[mono-error] Use g_assertf in mono_error_assert_ok implementation

Also add two more variants

* mono_error_assert_msg_ok (err, msg) to print "msg, due to <err>" on failure
* mono_error_assertf_ok (err, fmt, args...) to print
  "<formatted args>, due to <err>" on failure.
mono/utils/mono-error-internals.h
mono/utils/mono-error.c