diff options
| author | Tatsuhiro Tsujikawa <tatsuhiro.t@gmail.com> | 2011-12-10 18:03:30 +0900 |
|---|---|---|
| committer | Tatsuhiro Tsujikawa <tatsuhiro.t@gmail.com> | 2011-12-10 18:03:30 +0900 |
| commit | ebc082747c43d8fecbe7b38052277dd0391c7269 (patch) | |
| tree | 9c17e937c5d87aaa61c16b6a0334dc03cc30b0f2 /src/AbstractDiskWriter.cc | |
| parent | 413b61c316d6d3b361c86c812d1d654c6a4f6acf (diff) | |
Log filename in the exception when AbstractDiskWriter::closeFile() failed.
Diffstat (limited to 'src/AbstractDiskWriter.cc')
| -rw-r--r-- | src/AbstractDiskWriter.cc | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/src/AbstractDiskWriter.cc b/src/AbstractDiskWriter.cc index fb6a0174..50f52701 100644 --- a/src/AbstractDiskWriter.cc +++ b/src/AbstractDiskWriter.cc @@ -86,8 +86,10 @@ void AbstractDiskWriter::closeFile() fd_ = -1; if(r == -1) { int errNum = errno; - throw DL_ABORT_EX3(errNum, fmt("Failed to close file: %s", - util::safeStrerror(errNum).c_str()), + throw DL_ABORT_EX3(errNum, + fmt("Failed to close file %s, cause: %s", + filename_.c_str(), + util::safeStrerror(errNum).c_str()), error_code::FILE_IO_ERROR); } } |
