Fix: do not overwrite ret if already set and session found
authorJonathan Rajotte <jonathan.rajotte-julien@efficios.com>
Tue, 13 Sep 2016 21:17:50 +0000 (17:17 -0400)
committerJérémie Galarneau <jeremie.galarneau@efficios.com>
Fri, 7 Oct 2016 21:21:43 +0000 (17:21 -0400)
commitedfcf0addd3c809a0939cb2bb98f8d81296c5a6a
treeade027c557afe5d3dc5e0439f57aacc6c6dedfb3
parenteb3062d2ef0b5adcf65185c5c9a041c47bdf3ccb
Fix: do not overwrite ret if already set and session found

Errors were not propagated correctly otherwise.

e.g:
(No sessiond running)
lttng load --all
-> All sessions have been loaded successfully
lttng list show no sessions

With fix the same command output:
Error: No session daemon is available

Signed-off-by: Jonathan Rajotte <jonathan.rajotte-julien@efficios.com>
Signed-off-by: Jérémie Galarneau <jeremie.galarneau@efficios.com>
src/common/config/config.c
This page took 0.024865 seconds and 4 git commands to generate.