diff options
author | Chris Wilson <chris+github@qwirx.com> | 2015-05-16 09:17:14 +0000 |
---|---|---|
committer | Chris Wilson <chris+github@qwirx.com> | 2015-05-16 09:17:14 +0000 |
commit | bb1b7df0f7e917a84d0caae32172af46a7ebda88 (patch) | |
tree | 3cfbdb45c2b00c779d9630f0cc9d6a94611ad276 /lib/raidfile | |
parent | 2a7c529781e732c847cde3c421de549f4436c42c (diff) |
Improve exception message when unlink() on a raidfile stripe fails
Diffstat (limited to 'lib/raidfile')
-rw-r--r-- | lib/raidfile/RaidFileWrite.cpp | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/lib/raidfile/RaidFileWrite.cpp b/lib/raidfile/RaidFileWrite.cpp index f06a2472..8f95ba65 100644 --- a/lib/raidfile/RaidFileWrite.cpp +++ b/lib/raidfile/RaidFileWrite.cpp @@ -672,7 +672,9 @@ void RaidFileWrite::TransformToRaidStorage() { \ 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()); |