projects
/
lttng-tools.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
67b9d01
)
Add error message when config file not found
author
David Goulet
<david.goulet@polymtl.ca>
Thu, 8 Dec 2011 19:19:22 +0000
(14:19 -0500)
committer
David 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
patch
|
blob
|
blame
|
history
diff --git
a/lttng/conf.c
b/lttng/conf.c
index 5479a3cd016e740100d14198e210d45769da013d..7337d92cade22a4b143ad57932390cd5ad779cea 100644
(file)
--- 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 <my_sesion>)");
goto error;
}
This page took
0.027183 seconds
and
4
git commands to generate.