mirror of https://github.com/aria2/aria2
libaria2: Return last error code from DownloadHandle::getErrorCode
parent
1fe6cc7356
commit
0c62ae615d
|
@ -722,7 +722,9 @@ struct RequestGroupDH : public DownloadHandle {
|
||||||
{
|
{
|
||||||
return group->getNumConnection();
|
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
|
virtual const std::vector<A2Gid>& getFollowedBy() CXX11_OVERRIDE
|
||||||
{
|
{
|
||||||
return group->followedBy();
|
return group->followedBy();
|
||||||
|
|
Loading…
Reference in New Issue