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)
committerJonathan Rajotte <jonathan.rajotte-julien@efficios.com>
Tue, 13 Sep 2016 21:25:10 +0000 (17:25 -0400)
commit7dfb5e7c09b4d6dc0d335120a992c3bd00173e0f
tree4f63337f273583bc8b0a738eed1f29e6195e8866
parent95ecfc12159a55d11ef0ff18825411360f71ea9f
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>
src/common/config/session-config.c
This page took 0.026847 seconds and 5 git commands to generate.