summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--lib/common/Box.h4
1 files changed, 3 insertions, 1 deletions
diff --git a/lib/common/Box.h b/lib/common/Box.h
index 57b97416..4cab3a87 100644
--- a/lib/common/Box.h
+++ b/lib/common/Box.h
@@ -115,6 +115,8 @@
#define THROW_EXCEPTION_MESSAGE(type, subtype, message) \
{ \
+ std::ostringstream _box_throw_line; \
+ _box_throw_line << message; \
if(!HideExceptionMessageGuard::ExceptionsHidden()) \
{ \
OPTIONAL_DO_BACKTRACE \
@@ -122,7 +124,7 @@
#type "(" #subtype ") (" << message << \
") at " __FILE__ "(" << __LINE__ << ")") \
} \
- throw type(type::subtype, message); \
+ throw type(type::subtype, _box_throw_line.str()); \
}
// extra macros for converting to network byte order