exception fixes

This commit is contained in:
Arvid Norberg
2009-04-07 15:06:07 +00:00
parent 970ab50e57
commit 981ae208d1
2 changed files with 12 additions and 4 deletions

View File

@@ -158,8 +158,15 @@ int main(int argc, char* argv[])
, end(web_seeds.end()); i != end; ++i)
t.add_url_seed(*i);
error_code ec;
set_piece_hashes(t, full_path.branch_path()
, boost::bind(&print_progress, _1, t.num_pieces()));
, boost::bind(&print_progress, _1, t.num_pieces()), ec);
if (ec)
{
std::cerr << ec.message() << std::endl;
return 1;
}
std::cerr << std::endl;
t.set_creator(creator_str);