/* Connect to the session daemon */
ret = lttng_connect_sessiond();
if (ret < 0) {
- ERR("%s", lttng_get_readable_code(ret));
goto end;
}
if (opt_list_apps) {
ret = process_opt_list_apps();
if (ret < 0) {
- ERR("%s", lttng_get_readable_code(ret));
goto end;
}
}
return 0;
end:
+ ERR("%s", lttng_get_readable_code(ret));
return ret;
}