From ecbc05012ce252c03a5685ee4f0fd2b93b1fda25 Mon Sep 17 00:00:00 2001 From: Tatsuhiro Tsujikawa Date: Sun, 28 Nov 2010 17:29:32 +0900 Subject: Added additional error_code::Values(9 through 14). --- src/AbstractDiskWriter.cc | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) (limited to 'src/AbstractDiskWriter.cc') 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, -- cgit