cli: return if bt_plugin_find_all_from_dir fails in load_dynamic_plugins
authorSimon Marchi <simon.marchi@efficios.com>
Wed, 14 Aug 2019 17:49:51 +0000 (13:49 -0400)
committerJérémie Galarneau <jeremie.galarneau@efficios.com>
Wed, 4 Sep 2019 15:58:22 +0000 (11:58 -0400)
commit7d5464fbfd133e5e8f1f37410e264ebe747ec138
tree9a3fb0fddd9b7fd60bc82d21e678d338ab3b7fe8
parent48894eb201d7bec26a3eb08c154e055e231b9097
cli: return if bt_plugin_find_all_from_dir fails in load_dynamic_plugins

If the call to bt_plugin_find_all_from_dir in load_dynamic_plugins
returns an error (a negative status code), we currently continue
execution as if nothing happened.

This patch makes it so that we exit the loop and report the error to the
caller.

Change-Id: Ib22813b92fe06156cde1681c55651a294cd67909
Signed-off-by: Simon Marchi <simon.marchi@efficios.com>
Reviewed-on: https://review.lttng.org/c/babeltrace/+/1934
Tested-by: jenkins <jenkins@lttng.org>
Reviewed-by: Philippe Proulx <eeppeliteloop@gmail.com>
src/cli/babeltrace2-plugins.c
This page took 0.025268 seconds and 4 git commands to generate.