diff options
| author | Tatsuhiro Tsujikawa <tatsuhiro.t@gmail.com> | 2010-11-28 17:29:32 +0900 |
|---|---|---|
| committer | Tatsuhiro Tsujikawa <tatsuhiro.t@gmail.com> | 2010-11-28 17:29:32 +0900 |
| commit | ecbc05012ce252c03a5685ee4f0fd2b93b1fda25 (patch) | |
| tree | 7c16be7b845b74fa70e72efbc53595ec6cddd6dc /src/AbstractDiskWriter.cc | |
| parent | d316a00adeec3dd362d58a1456231a6673226378 (diff) | |
Added additional error_code::Values(9 through 14).
Diffstat (limited to 'src/AbstractDiskWriter.cc')
| -rw-r--r-- | src/AbstractDiskWriter.cc | 5 |
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, |
