forked from premiere/premiere-libtorrent
error handling in make_torrent
This commit is contained in:
parent
60aae18493
commit
5b039a8982
|
@ -140,6 +140,11 @@ int main(int argc, char* argv[])
|
|||
std::string full_path = libtorrent::complete(argv[1]);
|
||||
|
||||
add_files(fs, full_path, file_filter);
|
||||
if (fs.num_files() == 0)
|
||||
{
|
||||
fputs("no files specified.\n", stderr);
|
||||
return 1;
|
||||
}
|
||||
|
||||
create_torrent t(fs, piece_size, pad_file_limit, flags);
|
||||
for (std::vector<std::string>::iterator i = trackers.begin()
|
||||
|
|
Loading…
Reference in New Issue