[Box Backup-commit] COMMIT r1727 - box/chris/merge/lib/common
boxbackup-dev@fluffy.co.uk
boxbackup-dev@fluffy.co.uk
Thu, 26 Jul 2007 20:35:13 +0100
Author: chris
Date: 2007-07-26 20:35:13 +0100 (Thu, 26 Jul 2007)
New Revision: 1727
Modified:
box/chris/merge/lib/common/Box.h
Log:
Warn if an exception is thrown, with line number, as this shouldn't be
happening on production systems anyway.
Modified: box/chris/merge/lib/common/Box.h
===================================================================
--- box/chris/merge/lib/common/Box.h 2007-07-18 21:58:59 UTC (rev 1726)
+++ box/chris/merge/lib/common/Box.h 2007-07-26 19:35:13 UTC (rev 1727)
@@ -112,7 +112,7 @@
#define THROW_EXCEPTION(type, subtype) \
{ \
OPTIONAL_DO_BACKTRACE \
- BOX_TRACE("Exception thrown: " #type "(" #subtype ") at " \
+ BOX_WARN("Exception thrown: " #type "(" #subtype ") at " \
__FILE__ "(" << __LINE__ << ")") \
throw type(type::subtype); \
}