[Box Backup-commit] COMMIT r1257 - box/chris/merge/bin/bbackupd
boxbackup-dev at fluffy.co.uk
boxbackup-dev at fluffy.co.uk
Tue Jan 16 00:12:05 GMT 2007
Author: chris
Date: 2007-01-16 00:12:05 +0000 (Tue, 16 Jan 2007)
New Revision: 1257
Modified:
box/chris/merge/bin/bbackupd/BackupDaemon.h
Log:
Log AccessDenied errors in a more concise form than general exceptions
(refs #3)
Modified: box/chris/merge/bin/bbackupd/BackupDaemon.h
===================================================================
--- box/chris/merge/bin/bbackupd/BackupDaemon.h 2007-01-15 23:55:53 UTC (rev 1256)
+++ box/chris/merge/bin/bbackupd/BackupDaemon.h 2007-01-16 00:12:05 UTC (rev 1257)
@@ -287,10 +287,19 @@
const std::string& rLocalPath,
const BoxException& rException)
{
- BOX_ERROR("Failed to upload file: " << rLocalPath
- << ": caught exception: " << rException.what()
- << " (" << rException.GetType()
- << "/" << rException.GetSubType() << ")");
+ if (rException.GetType() == CommonException::ExceptionType &&
+ rException.GetSubType() == CommonException::AccessDenied)
+ {
+ BOX_ERROR("Failed to upload file: " << rLocalPath
+ << ": Access denied");
+ }
+ else
+ {
+ BOX_ERROR("Failed to upload file: " << rLocalPath
+ << ": caught exception: " << rException.what()
+ << " (" << rException.GetType()
+ << "/" << rException.GetSubType() << ")");
+ }
}
virtual void NotifyFileUploading(
const BackupClientDirectoryRecord* pDirRecord,
More information about the Boxbackup-commit
mailing list