summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorChris Wilson <chris+github@qwirx.com>2007-03-04 23:38:03 +0000
committerChris Wilson <chris+github@qwirx.com>2007-03-04 23:38:03 +0000
commite937c5734e249b19bcc8c59ecd1721c541d764f1 (patch)
tree78e684418e35ec24ca08b6363e8a9f3e40ac8663
parente59d7dac529849bdb8f2c19b2134ac937c5fc325 (diff)
Add logging in remaining places where Common OSFileOpenError can be thrown.
(refs #3, merges part of [1099] and [1359])
-rw-r--r--lib/common/EventWatchFilesystemObject.cpp4
1 files changed, 4 insertions, 0 deletions
diff --git a/lib/common/EventWatchFilesystemObject.cpp b/lib/common/EventWatchFilesystemObject.cpp
index a9508c22..4282f1e3 100644
--- a/lib/common/EventWatchFilesystemObject.cpp
+++ b/lib/common/EventWatchFilesystemObject.cpp
@@ -17,6 +17,7 @@
#include "EventWatchFilesystemObject.h"
#include "autogen_CommonException.h"
+#include "Logging.h"
#include "MemLeakFindOn.h"
@@ -37,6 +38,9 @@ EventWatchFilesystemObject::EventWatchFilesystemObject(const char *Filename)
#ifdef HAVE_KQUEUE
if(mDescriptor == -1)
{
+ BOX_ERROR("EventWatchFilesystemObject: "
+ "Failed to open file '" << Filename << "': " <<
+ strerror(errno));
THROW_EXCEPTION(CommonException, OSFileOpenError)
}
#else