diff options
| author | bunnei <bunneidev@gmail.com> | 2021-01-24 22:50:36 -0800 |
|---|---|---|
| committer | bunnei <bunneidev@gmail.com> | 2021-01-28 21:42:26 -0800 |
| commit | d685f12dbc4ded3441875e3fa77f6d8203edbf19 (patch) | |
| tree | 774c15f0f4b052fe3c3e4840fe0eb01b89ab2708 /src/common/common_funcs.h | |
| parent | cf3a05cf8c88c0625f4677fbfd4d9b8745de0ebe (diff) | |
common: common_funcs: Log error on R_UNLESS.
Diffstat (limited to 'src/common/common_funcs.h')
| -rw-r--r-- | src/common/common_funcs.h | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/src/common/common_funcs.h b/src/common/common_funcs.h index 842d62ca71..71d136d4ae 100644 --- a/src/common/common_funcs.h +++ b/src/common/common_funcs.h @@ -97,6 +97,9 @@ __declspec(dllimport) void __stdcall DebugBreak(void); #define R_UNLESS(expr, res) \ { \ if (!(expr)) { \ + if (res.IsError()) { \ + LOG_CRITICAL(Kernel, "Failed with error {}", res.raw); \ + } \ return res; \ } \ } |
