From 1d45dbabb0710be5c13761ff3acaf488b6279024 Mon Sep 17 00:00:00 2001 From: Arvid Norberg Date: Mon, 10 Nov 2008 04:16:52 +0000 Subject: [PATCH] improved client_test add_torrent output --- examples/client_test.cpp | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/examples/client_test.cpp b/examples/client_test.cpp index fbdcf090a..85e6bedf2 100644 --- a/examples/client_test.cpp +++ b/examples/client_test.cpp @@ -497,12 +497,13 @@ void add_torrent(libtorrent::session& ses { t = new torrent_info(torrent.c_str()); } - catch (std::exception&) + catch (std::exception& e) { + std::cout << torrent << ": " << e.what() << std::endl; return; } - std::cout << t->name() << "\n"; + std::cout << t->name() << std::endl; add_torrent_params p; lazy_entry resume_data;