Add error message when config file not found
authorDavid Goulet <david.goulet@polymtl.ca>
Thu, 8 Dec 2011 19:19:22 +0000 (14:19 -0500)
committerDavid Goulet <david.goulet@polymtl.ca>
Thu, 8 Dec 2011 19:19:22 +0000 (14:19 -0500)
Signed-off-by: David Goulet <david.goulet@polymtl.ca>
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.027183 seconds and 4 git commands to generate.