Fix: warn when a loaded session can't be set as the default
authorJérémie Galarneau <jeremie.galarneau@efficios.com>
Fri, 7 Oct 2016 21:03:26 +0000 (17:03 -0400)
committerJérémie Galarneau <jeremie.galarneau@efficios.com>
Fri, 7 Oct 2016 21:03:26 +0000 (17:03 -0400)
Signed-off-by: Jérémie Galarneau <jeremie.galarneau@efficios.com>
src/bin/lttng/commands/load.c

index 630dccd3b5787e223bdca393a3f3e0e7d28e4579..7578fdce0b687d3fc74854501aac593006a1073b 100644 (file)
@@ -286,7 +286,8 @@ int cmd_load(int argc, const char **argv)
                } else if (session_name) {
                        ret = config_init((char *) session_name);
                        if (ret < 0) {
-                               ret = CMD_WARNING;
+                               WARN("Could not set %s as the default session",
+                                               session_name);
                        }
                        MSG("Session %s has been loaded successfully", session_name);
                } else {
This page took 0.025225 seconds and 4 git commands to generate.