Explorar o código

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

Tatsuhiro Tsujikawa %!s(int64=15) %!d(string=hai) anos
pai
achega
d5b6ec8621
Modificáronse 1 ficheiros con 1 adicións e 0 borrados
  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());
     }