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>
Thu, 6 Oct 2016 15:08:15 +0000 (11:08 -0400)
commit464133ea1e46be8c38c3580c1a659096f24e32d5
treea212a255b44d4af2d21f01318acf4d63ec698da2
parent0b1c5ad55be0ee7f7a19e9cd31f07562dcd8dcc1
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/session-config.c
This page took 0.026022 seconds and 4 git commands to generate.