Fix: lttng UI failed to report error 19
[lttng-tools.git] / src / bin / lttng / commands / list.c
index 48b2c82763e3bb69a40987e9f42f41e765355037..7006e8e101a7f2080c331ce8f91517762c5cec0e 100644 (file)
@@ -588,6 +588,7 @@ static int list_sessions(const char *session_name)
        DBG("Session count %d", count);
        if (count < 0) {
                ret = count;
+               ERR("%s", lttng_strerror(ret));
                goto error;
        } else if (count == 0) {
                MSG("Currently no available tracing session");
@@ -744,6 +745,7 @@ int cmd_list(int argc, const char **argv)
                if (opt_kernel) {
                        ret = list_kernel_events();
                        if (ret < 0) {
+                               ret = CMD_ERROR;
                                goto end;
                        }
                }
@@ -754,6 +756,7 @@ int cmd_list(int argc, const char **argv)
                                ret = list_ust_events();
                        }
                        if (ret < 0) {
+                               ret = CMD_ERROR;
                                goto end;
                        }
                }
This page took 0.026809 seconds and 4 git commands to generate.