Skip to content

Commit

Permalink
Merge pull request aria2#999 from aria2/fix-libaria2-getErrorCode
Browse files Browse the repository at this point in the history
libaria2: Return last error code from DownloadHandle::getErrorCode
  • Loading branch information
tatsuhiro-t authored Aug 30, 2017
2 parents 1fe6cc7 + 0c62ae6 commit fce8909
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion src/aria2api.cc
Original file line number Diff line number Diff line change
Expand Up @@ -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();
Expand Down

0 comments on commit fce8909

Please sign in to comment.