summaryrefslogtreecommitdiff
path: root/src/FileAllocationCommand.cc
diff options
context:
space:
mode:
authorTatsuhiro Tsujikawa <tatsuhiro.t@gmail.com>2017-02-23 21:34:58 +0900
committerTatsuhiro Tsujikawa <tatsuhiro.t@gmail.com>2017-02-23 21:34:58 +0900
commit8fc0c85125fc4d30decdedd4c1f454999397406a (patch)
tree6a922595e2bafe9f16a78efa9a9f6d2b7050c5b5 /src/FileAllocationCommand.cc
parent857d6a2a8e924618d37e75e6eda5e008a431cc48 (diff)
Propagate disk full error on pre-allocation to last error code
Diffstat (limited to 'src/FileAllocationCommand.cc')
-rw-r--r--src/FileAllocationCommand.cc1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/FileAllocationCommand.cc b/src/FileAllocationCommand.cc
index 1ac63e7b..335dec0b 100644
--- a/src/FileAllocationCommand.cc
+++ b/src/FileAllocationCommand.cc
@@ -92,6 +92,7 @@ bool FileAllocationCommand::executeInternal()
bool FileAllocationCommand::handleException(Exception& e)
{
+ getRequestGroup()->setLastErrorCode(e.getErrorCode(), e.what());
A2_LOG_ERROR_EX(fmt(MSG_FILE_ALLOCATION_FAILURE, getCuid()), e);
A2_LOG_ERROR(
fmt(MSG_DOWNLOAD_NOT_COMPLETE, getCuid(),