From: David Goulet Date: Thu, 8 Dec 2011 19:19:22 +0000 (-0500) Subject: Add error message when config file not found X-Git-Tag: v2.0-pre15~15 X-Git-Url: https://git.lttng.org/?p=lttng-tools.git;a=commitdiff_plain;h=a9bddc022723613ed5d2439127c493fa900acde1;hp=67b9d0189ff27332a3bd49d23f2b4380fb69a8e5 Add error message when config file not found Signed-off-by: David Goulet --- 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; }