X-Git-Url: http://git.lttng.org/?p=lttng-tools.git;a=blobdiff_plain;f=src%2Fbin%2Flttng%2Fcommands%2Fdestroy.cpp;fp=src%2Fbin%2Flttng%2Fcommands%2Fdestroy.cpp;h=5e19d4189025181682d2040d503290cc9d0172cf;hp=ef4b914d38bd39f124debce1dfb31600ba572a50;hb=9cde3a4ab8b763df804f8105728d90f59521438b;hpb=e1b89bf00b15f64523d24cf3e652cdc706d38843 diff --git a/src/bin/lttng/commands/destroy.cpp b/src/bin/lttng/commands/destroy.cpp index ef4b914d3..5e19d4189 100644 --- a/src/bin/lttng/commands/destroy.cpp +++ b/src/bin/lttng/commands/destroy.cpp @@ -7,7 +7,6 @@ #define _LGPL_SOURCE #include "../command.hpp" -#include "../exception.hpp" #include #include @@ -273,14 +272,6 @@ cmd_error_code destroy_sessions(const lttng::cli::session_spec& spec) lttng_strerror(-ctl_exception.code())); listing_failed = true; return {}; - } catch (const lttng::cli::no_default_session_error& cli_exception) { - /* - * The retrieval of the default session name already logs - * an error when it fails. There is no value in printing - * anything about this exception. - */ - listing_failed = true; - return {}; } }();