Merge pull request #999 from aria2/fix-libaria2-getErrorCode

libaria2: Return last error code from DownloadHandle::getErrorCode
pull/1021/head
Tatsuhiro Tsujikawa 2017-08-30 22:25:36 +09:00 committed by GitHub
commit fce8909506
1 changed files with 3 additions and 1 deletions

View File

@ -722,7 +722,9 @@ struct RequestGroupDH : public DownloadHandle {
{
return group->getNumConnection();
}
virtual int getErrorCode() CXX11_OVERRIDE { return 0; }
virtual int getErrorCode() CXX11_OVERRIDE {
return group->getLastErrorCode();
}
virtual const std::vector<A2Gid>& getFollowedBy() CXX11_OVERRIDE
{
return group->followedBy();