Improve error handling of lttng cli
[lttng-tools.git] / src / bin / lttng-sessiond / session.c
index 68edeb9ee06c46fbf0500020bc64bc658645c1b0..e890d07bac3b4d359c788152ea244ca96582bb31 100644 (file)
 #include <sys/types.h>
 #include <urcu.h>
 
+#include <common/common.h>
 #include <common/sessiond-comm/sessiond-comm.h>
-#include <common/runas.h>
-#include <common/lttngerr.h>
-#include <common/lttng-share.h>
 
 #include "session.h"
 
@@ -223,7 +221,7 @@ int session_create(char *name, char *path, uid_t uid, gid_t gid)
        if (ret < 0) {
                if (ret != -EEXIST) {
                        ERR("Trace directory creation error");
-                       ret = LTTCOMM_CREATE_FAIL;
+                       ret = LTTCOMM_CREATE_DIR_FAIL;
                        goto error;
                }
        }
This page took 0.025311 seconds and 5 git commands to generate.