mirror of https://github.com/aria2/aria2
2008-12-23 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
Added try-catch block in the loop in showFiles() to continue the operation even if the exception occurred in one file. * src/main.cc (showFiles)pull/1/head
parent
a84cc7621d
commit
3a7edb7680
|
@ -1,3 +1,9 @@
|
||||||
|
2008-12-23 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
|
||||||
|
|
||||||
|
Added try-catch block in the loop in showFiles() to continue the
|
||||||
|
operation even if the exception occurred in one file.
|
||||||
|
* src/main.cc (showFiles)
|
||||||
|
|
||||||
2008-12-20 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
|
2008-12-20 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
|
||||||
|
|
||||||
Made messages in showFiles() translatable.
|
Made messages in showFiles() translatable.
|
||||||
|
|
18
src/main.cc
18
src/main.cc
|
@ -127,13 +127,17 @@ static void showFiles(const std::deque<std::string>& uris, const Option* op)
|
||||||
i != uris.end(); ++i) {
|
i != uris.end(); ++i) {
|
||||||
printf(MSG_SHOW_FILES, (*i).c_str());
|
printf(MSG_SHOW_FILES, (*i).c_str());
|
||||||
printf("\n");
|
printf("\n");
|
||||||
if(dt.guessTorrentFile(*i)) {
|
try {
|
||||||
showTorrentFile(*i);
|
if(dt.guessTorrentFile(*i)) {
|
||||||
} else if(dt.guessMetalinkFile(*i)) {
|
showTorrentFile(*i);
|
||||||
showMetalinkFile(*i, op);
|
} else if(dt.guessMetalinkFile(*i)) {
|
||||||
} else {
|
showMetalinkFile(*i, op);
|
||||||
printf(MSG_NOT_TORRENT_METALINK);
|
} else {
|
||||||
printf("\n\n");
|
printf(MSG_NOT_TORRENT_METALINK);
|
||||||
|
printf("\n\n");
|
||||||
|
}
|
||||||
|
} catch(RecoverableException& e) {
|
||||||
|
std::cout << e.stackTrace() << std::endl;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue