summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--lib/common/Logging.h9
1 files changed, 6 insertions, 3 deletions
diff --git a/lib/common/Logging.h b/lib/common/Logging.h
index 24863d2c..6ffeec5d 100644
--- a/lib/common/Logging.h
+++ b/lib/common/Logging.h
@@ -51,10 +51,13 @@
#define BOX_LOG_SYS_FATAL(stuff) \
BOX_FATAL(BOX_SYS_ERROR(stuff))
-#define LOG_AND_THROW_ERROR(message, filename, exception, subtype) \
- BOX_LOG_SYS_ERROR(message << ": " << filename); \
+#define THROW_SYS_ERROR(message, exception, subtype) \
+ BOX_LOG_SYS_ERROR(message); \
THROW_EXCEPTION_MESSAGE(exception, subtype, \
- BOX_SYS_ERROR(message << ": " << filename));
+ BOX_SYS_ERROR(message))
+
+#define THROW_SYS_FILE_ERROR(message, filename, exception, subtype) \
+ THROW_SYS_ERROR(message << ": " << filename, exception, subtype)
inline std::string GetNativeErrorMessage()
{