From 8fc0c85125fc4d30decdedd4c1f454999397406a Mon Sep 17 00:00:00 2001 From: Tatsuhiro Tsujikawa Date: Thu, 23 Feb 2017 21:34:58 +0900 Subject: Propagate disk full error on pre-allocation to last error code --- src/FileAllocationCommand.cc | 1 + 1 file changed, 1 insertion(+) (limited to 'src/FileAllocationCommand.cc') 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(), -- cgit