From a9bddc022723613ed5d2439127c493fa900acde1 Mon Sep 17 00:00:00 2001 From: David Goulet Date: Thu, 8 Dec 2011 14:19:22 -0500 Subject: [PATCH 1/1] Add error message when config file not found Signed-off-by: David Goulet --- lttng/conf.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lttng/conf.c b/lttng/conf.c index 5479a3cd0..7337d92ca 100644 --- a/lttng/conf.c +++ b/lttng/conf.c @@ -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 )"); goto error; } -- 2.34.1