Add error message when config file not found
[lttng-tools.git] / lttng / conf.c
index 5479a3cd016e740100d14198e210d45769da013d..7337d92cade22a4b143ad57932390cd5ad779cea 100644 (file)
@@ -63,7 +63,6 @@ static FILE *open_config(char *path, const char *mode)
 
        fp = fopen(file_path, mode);
        if (fp == NULL) {
-               perror("config file");
                goto error;
        }
 
@@ -171,6 +170,7 @@ char *config_read_session_name(char *path)
        fp = open_config(path, "r");
        if (fp == NULL) {
                ERR("Can't find valid lttng config %s/.lttngrc", path);
+               MSG("Did you create a session? (lttng create <my_sesion>)");
                goto error;
        }
 
This page took 0.022728 seconds and 4 git commands to generate.