Fix error handling
[lttng-tools.git] / lttng / commands / create.c
index 9fe82514097e9117ce662e4b6c2fa559fa1f4322..dbed8f021568f53c38b37432a078639f911fa77d 100644 (file)
@@ -109,6 +109,9 @@ static int create_session()
        /* Init lttng session config */
        ret = config_init(session_name);
        if (ret < 0) {
+               if (ret == -1) {
+                       ret = CMD_ERROR;
+               }
                goto error;
        }
 
This page took 0.023989 seconds and 5 git commands to generate.