소스 검색

Call RequestGroup::setLastError when exception is caught while
creating initial commands.

Tatsuhiro Tsujikawa 15 년 전
부모
커밋
d5b6ec8621
1개의 변경된 파일1개의 추가작업 그리고 0개의 파일을 삭제
  1. 1 0
      src/RequestGroupMan.cc

+ 1 - 0
src/RequestGroupMan.cc

@@ -524,6 +524,7 @@ void RequestGroupMan::fillRequestGroupFromReserver(DownloadEngine* e)
       std::for_each(commands.begin(), commands.end(), Deleter());
       commands.clear();
       A2_LOG_DEBUG("Commands deleted");
+      groupToAdd->setLastErrorCode(ex.getErrorCode());
       groupToAdd->releaseRuntimeResource(e);
       addDownloadResult(groupToAdd->createDownloadResult());
     }