summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--src/common/common_funcs.h3
1 files changed, 3 insertions, 0 deletions
diff --git a/src/common/common_funcs.h b/src/common/common_funcs.h
index 842d62ca7..71d136d4a 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; \
} \
}