aboutsummaryrefslogtreecommitdiffstats
path: root/src/ckerrlog.h
diff options
context:
space:
mode:
Diffstat (limited to 'src/ckerrlog.h')
-rw-r--r--src/ckerrlog.h8
1 files changed, 7 insertions, 1 deletions
diff --git a/src/ckerrlog.h b/src/ckerrlog.h
index 66923cb..aa5840b 100644
--- a/src/ckerrlog.h
+++ b/src/ckerrlog.h
@@ -74,7 +74,13 @@ CK_STREAMS
#define ERR(...) \
ckerr_with_delim("\n", "Error in [%s]:", COMPONENT); \
ckerr(__VA_ARGS__); \
- cklog_with_delim(" ", "ERROR: [%s]", COMPONENT); \
+ cklog_with_delim(" ", "ERROR: [%s]", COMPONENT); \
+ cklog(__VA_ARGS__); \
+ report_err();
+
+#define sERR(...) \
+ ckerr(__VA_ARGS__); \
+ cklog_with_delim(" ", "ERROR: [%s]", COMPONENT); \
cklog(__VA_ARGS__); \
report_err();