[Box Backup-commit] COMMIT r2390 - box/trunk/lib/common
boxbackup-dev at boxbackup.org
boxbackup-dev at boxbackup.org
Sun Nov 30 21:56:38 GMT 2008
Author: chris
Date: 2008-11-30 21:56:37 +0000 (Sun, 30 Nov 2008)
New Revision: 2390
Modified:
box/trunk/lib/common/FileStream.cpp
Log:
Log the Windows error code if openfile() fails on Windows, as
the default strerror() seems borked and reports EBUSY (file in
use) as"Resource device".
Modified: box/trunk/lib/common/FileStream.cpp
===================================================================
--- box/trunk/lib/common/FileStream.cpp 2008-11-30 21:54:55 UTC (rev 2389)
+++ box/trunk/lib/common/FileStream.cpp 2008-11-30 21:56:37 UTC (rev 2390)
@@ -73,8 +73,13 @@
}
else
{
+ #ifdef WIN32
+ BOX_LOG_WIN_WARNING("Failed to open file: " <<
+ mFileName);
+ #else
BOX_LOG_SYS_WARNING("Failed to open file: " <<
mFileName);
+ #endif
THROW_EXCEPTION(CommonException, OSFileOpenError)
}
}
More information about the Boxbackup-commit
mailing list