summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorChris Wilson <chris+github@qwirx.com>2007-03-05 00:14:55 +0000
committerChris Wilson <chris+github@qwirx.com>2007-03-05 00:14:55 +0000
commitd2852f68a7e7c4f3154ba5d0521c9f9c1c8f535a (patch)
tree035d5c2df93ad5edfe6c98f8b714ec4b0e41da9d
parentd17445865a24087fc7df683a957783c529a232c1 (diff)
Add logging in remaining places where Common OSFileOpenError can be thrown.
(refs #3, merges part of [1099], and [1370])
-rw-r--r--lib/common/Guards.h3
1 files changed, 3 insertions, 0 deletions
diff --git a/lib/common/Guards.h b/lib/common/Guards.h
index b1bca0fa..52018493 100644
--- a/lib/common/Guards.h
+++ b/lib/common/Guards.h
@@ -21,6 +21,7 @@
#include <new>
#include "CommonException.h"
+#include "Logging.h"
#include "MemLeakFindOn.h"
@@ -33,6 +34,8 @@ public:
{
if(mOSFileHandle < 0)
{
+ BOX_ERROR("FileHandleGuard: failed to open file '" <<
+ filename << "': " << strerror(errno));
THROW_EXCEPTION(CommonException, OSFileOpenError)
}
}