[Box Backup-commit] COMMIT r1371 - box/chris/merge/lib/common

boxbackup-dev at fluffy.co.uk boxbackup-dev at fluffy.co.uk
Mon Mar 5 00:14:56 GMT 2007


Author: chris
Date: 2007-03-05 00:14:55 +0000 (Mon, 05 Mar 2007)
New Revision: 1371

Modified:
   box/chris/merge/lib/common/Guards.h
Log:
Add logging in remaining places where Common OSFileOpenError can be thrown.

(refs #3, merges part of [1099], and [1370])


Modified: box/chris/merge/lib/common/Guards.h
===================================================================
--- box/chris/merge/lib/common/Guards.h	2007-03-05 00:12:34 UTC (rev 1370)
+++ box/chris/merge/lib/common/Guards.h	2007-03-05 00:14:55 UTC (rev 1371)
@@ -21,6 +21,7 @@
 #include <new>
 
 #include "CommonException.h"
+#include "Logging.h"
 
 #include "MemLeakFindOn.h"
 
@@ -33,6 +34,8 @@
 	{
 		if(mOSFileHandle < 0)
 		{
+			BOX_ERROR("FileHandleGuard: failed to open file '" <<
+				filename << "': " << strerror(errno));
 			THROW_EXCEPTION(CommonException, OSFileOpenError)
 		}
 	}




More information about the Boxbackup-commit mailing list