summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-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)
}
}