Przeglądaj źródła

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

Tatsuhiro Tsujikawa 15 lat temu
rodzic
commit
d5b6ec8621
1 zmienionych plików z 1 dodań i 0 usunięć
  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());
     }