[Box Backup-commit] COMMIT r3564 - box/trunk/lib/raidfile

subversion at boxbackup.org subversion at boxbackup.org
Sat May 16 10:17:14 BST 2015


Author: chris
Date: 2015-05-16 09:17:14 +0000 (Sat, 16 May 2015)
New Revision: 3564

Modified:
   box/trunk/lib/raidfile/RaidFileWrite.cpp
Log:
Improve exception message when unlink() on a raidfile stripe fails

Modified: box/trunk/lib/raidfile/RaidFileWrite.cpp
===================================================================
--- box/trunk/lib/raidfile/RaidFileWrite.cpp	2015-05-16 09:17:11 UTC (rev 3563)
+++ box/trunk/lib/raidfile/RaidFileWrite.cpp	2015-05-16 09:17:14 UTC (rev 3564)
@@ -672,7 +672,9 @@
 		{ \
 			if (::unlink(file) != 0 && errno != ENOENT) \
 			{ \
-				THROW_EXCEPTION(RaidFileException, OSError); \
+				THROW_EMU_ERROR("Failed to unlink raidfile " \
+					"stripe: " << file, RaidFileException, \
+					OSError); \
 			} \
 		}
 		CHECK_UNLINK(stripe1Filename.c_str());




More information about the Boxbackup-commit mailing list