diff options
author | Chris Wilson <chris+github@qwirx.com> | 2007-03-04 23:38:03 +0000 |
---|---|---|
committer | Chris Wilson <chris+github@qwirx.com> | 2007-03-04 23:38:03 +0000 |
commit | e937c5734e249b19bcc8c59ecd1721c541d764f1 (patch) | |
tree | 78e684418e35ec24ca08b6363e8a9f3e40ac8663 /lib/common/EventWatchFilesystemObject.cpp | |
parent | e59d7dac529849bdb8f2c19b2134ac937c5fc325 (diff) |
Add logging in remaining places where Common OSFileOpenError can be thrown.
(refs #3, merges part of [1099] and [1359])
Diffstat (limited to 'lib/common/EventWatchFilesystemObject.cpp')
-rw-r--r-- | lib/common/EventWatchFilesystemObject.cpp | 4 |
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 |