mirror of https://github.com/aria2/aria2
2009-07-15 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
Added 'errorCode' to the reponse of tellStatus xml-rpc method. This key is only available for stopped/completed downloads and its value is the error code defined in EXIT STATUS in man page. * src/XmlRpcMethodImpl.ccpull/1/head
parent
de23f72818
commit
d17d7631e1
|
@ -1,3 +1,10 @@
|
|||
2009-07-15 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
|
||||
|
||||
Added 'errorCode' to the reponse of tellStatus xml-rpc method.
|
||||
This key is only available for stopped/completed downloads and its
|
||||
value is the error code defined in EXIT STATUS in man page.
|
||||
* src/XmlRpcMethodImpl.cc
|
||||
|
||||
2009-07-15 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
|
||||
|
||||
Fixed the bug that session download length is not updated when
|
||||
|
|
|
@ -345,6 +345,7 @@ static void gatherStoppedDownload
|
|||
(BDE& entryDict, const SharedHandle<DownloadResult>& ds)
|
||||
{
|
||||
entryDict["gid"] = Util::itos(ds->gid);
|
||||
entryDict["errorCode"] = Util::itos(static_cast<int>(ds->result));
|
||||
if(ds->result == downloadresultcode::IN_PROGRESS) {
|
||||
entryDict["status"] = BDE_REMOVED;
|
||||
} else if(ds->result == downloadresultcode::FINISHED) {
|
||||
|
|
Loading…
Reference in New Issue