From: Jérémie Galarneau Date: Thu, 8 May 2014 16:13:05 +0000 (-0400) Subject: Print an error message when a session fails to load X-Git-Tag: v2.5.0-rc1~51 X-Git-Url: https://git.lttng.org./?a=commitdiff_plain;h=b2579dc14eacae00a596d8bb885620c9fa4e263d;p=lttng-tools.git Print an error message when a session fails to load Signed-off-by: Jérémie Galarneau Signed-off-by: David Goulet --- diff --git a/src/common/config/config.c b/src/common/config/config.c index df6f6a3f4..b8a32e6e1 100644 --- a/src/common/config/config.c +++ b/src/common/config/config.c @@ -2305,6 +2305,11 @@ domain_init_error: } } end: + if (ret < 0) { + ERR("Failed to load session %s: %s", name, lttng_strerror(ret)); + lttng_destroy_session(name); + } + free(kernel_domain); free(ust_domain); free(jul_domain);