diff options
author | Chris Wilson <chris+github@qwirx.com> | 2007-03-05 00:14:55 +0000 |
---|---|---|
committer | Chris Wilson <chris+github@qwirx.com> | 2007-03-05 00:14:55 +0000 |
commit | d2852f68a7e7c4f3154ba5d0521c9f9c1c8f535a (patch) | |
tree | 035d5c2df93ad5edfe6c98f8b714ec4b0e41da9d /lib/common | |
parent | d17445865a24087fc7df683a957783c529a232c1 (diff) |
Add logging in remaining places where Common OSFileOpenError can be thrown.
(refs #3, merges part of [1099], and [1370])
Diffstat (limited to 'lib/common')
-rw-r--r-- | lib/common/Guards.h | 3 |
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) } } |