summaryrefslogtreecommitdiff
path: root/src/AbstractDiskWriter.cc
diff options
context:
space:
mode:
authorTatsuhiro Tsujikawa <tatsuhiro.t@gmail.com>2010-11-28 17:29:32 +0900
committerTatsuhiro Tsujikawa <tatsuhiro.t@gmail.com>2010-11-28 17:29:32 +0900
commitecbc05012ce252c03a5685ee4f0fd2b93b1fda25 (patch)
tree7c16be7b845b74fa70e72efbc53595ec6cddd6dc /src/AbstractDiskWriter.cc
parentd316a00adeec3dd362d58a1456231a6673226378 (diff)
Added additional error_code::Values(9 through 14).
Diffstat (limited to 'src/AbstractDiskWriter.cc')
-rw-r--r--src/AbstractDiskWriter.cc5
1 files changed, 3 insertions, 2 deletions
diff --git a/src/AbstractDiskWriter.cc b/src/AbstractDiskWriter.cc
index fa0c82a1..e343857a 100644
--- a/src/AbstractDiskWriter.cc
+++ b/src/AbstractDiskWriter.cc
@@ -162,10 +162,11 @@ void AbstractDiskWriter::writeData(const unsigned char* data, size_t len, off_t
// If errno is ENOSPC(not enough space in device), throw
// DownloadFailureException and abort download instantly.
if(errNum == ENOSPC) {
- throw DOWNLOAD_FAILURE_EXCEPTION
+ throw DOWNLOAD_FAILURE_EXCEPTION2
(fmt(EX_FILE_WRITE,
filename_.c_str(),
- util::safeStrerror(errNum).c_str()));
+ util::safeStrerror(errNum).c_str()),
+ error_code::NOT_ENOUGH_DISK_SPACE);
} else {
throw DL_ABORT_EX
(fmt(EX_FILE_WRITE,