src.ctf.fs: append error cause when no traces are found in directory
authorPhilippe Proulx <eeppeliteloop@gmail.com>
Thu, 4 Jul 2019 05:51:33 +0000 (01:51 -0400)
committerPhilippe Proulx <eeppeliteloop@gmail.com>
Sat, 6 Jul 2019 03:47:50 +0000 (23:47 -0400)
This is just to have at least one way to test the CLI error reporting
with a component actor.

Signed-off-by: Philippe Proulx <eeppeliteloop@gmail.com>
Change-Id: Iaf59163123c48944168e4e6d0ad1c87ea51cdc5a
Reviewed-on: https://review.lttng.org/c/babeltrace/+/1619
Tested-by: jenkins <jenkins@lttng.org>
Reviewed-by: Francis Deslauriers <francis.deslauriers@efficios.com>
Reviewed-by: Simon Marchi <simon.marchi@efficios.com>
src/plugins/ctf/fs-src/fs.c

index b9faf97af71309c06cc88b13318359c9505f1b21..84dae6a1b107b88582af9ddbe2a4af0126f2c8d4 100644 (file)
@@ -1315,6 +1315,9 @@ int ctf_fs_component_create_ctf_fs_traces_one_root(
        if (!trace_paths) {
                BT_COMP_LOGE("No CTF traces recursively found in `%s`.",
                        path_param);
+               (void) BT_CURRENT_THREAD_ERROR_APPEND_CAUSE_FROM_COMPONENT(
+                       ctf_fs->self_comp,
+                       "No CTF traces recursively found in `%s`.", path_param);
                goto error;
        }
 
This page took 0.025539 seconds and 4 git commands to generate.