src.ctf.fs: append error cause when no traces are found in directory
[babeltrace.git] / 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.026 seconds and 4 git commands to generate.