Improve trace output path and config path
[lttng-tools.git] / lttng / commands / create.c
index 941f72355426e792987442134061d7569e52cbb3..e76316d219bfe66cb4eb71e0b0289426402249b9 100644 (file)
@@ -28,6 +28,7 @@
 
 #include "cmd.h"
 #include "conf.h"
+#include "utils.h"
 
 static char *opt_output_path;
 static char *opt_session_name;
@@ -84,6 +85,8 @@ static int create_session()
        if (opt_output_path == NULL) {
                alloc_path = config_get_default_path();
                if (alloc_path == NULL) {
+                       ERR("Home path not found.\n \
+                                Please specify an output path using -o, --output PATH");
                        ret = CMD_FATAL;
                        goto error;
                }
@@ -114,7 +117,7 @@ static int create_session()
        }
 
        MSG("Session %s created.", session_name);
-       MSG("Working directory of created session is %s", path);
+       MSG("Working directory of created session is %s/%s", path, session_name);
 
        ret = CMD_SUCCESS;
 
This page took 0.031829 seconds and 4 git commands to generate.