src.ctf.fs: error out when failing to create index
[babeltrace.git] / src / plugins / ctf / fs-src / fs.c
index ee322c0e50851d1b4e107f977776fe974c05f38b..097304012ba5f4e35a01796e6c3bbdf78663eef5 100644 (file)
@@ -785,8 +785,11 @@ int add_ds_file_to_ds_file_group(struct ctf_fs_trace *ctf_fs_trace,
 
        index = ctf_fs_ds_file_build_index(ds_file, ds_file_info);
        if (!index) {
-               BT_COMP_LOGW("Failed to index CTF stream file \'%s\'",
+               BT_COMP_OR_COMP_CLASS_LOGE_APPEND_CAUSE(
+                       self_comp, self_comp_class,
+                       "Failed to index CTF stream file \'%s\'",
                        ds_file->file->path->str);
+               goto error;
        }
 
        if (begin_ns == -1) {
This page took 0.024079 seconds and 4 git commands to generate.