cli: update error message in set_stream_intersections
authorSimon Marchi <simon.marchi@efficios.com>
Wed, 2 Oct 2019 15:33:03 +0000 (11:33 -0400)
committerJérémie Galarneau <jeremie.galarneau@efficios.com>
Wed, 9 Oct 2019 18:14:29 +0000 (14:14 -0400)
The error message printed when the `babeltrace.trace-infos` query fails,
regardless of the reason, is "Component class does not support the
`babeltrace.trace-infos` query".  I think it's misleading, because this
is just one particular error case.  It could be that the component class
supports the query, but failed because it didn't like the parameters we
passed.

Update the message to be a bit more generic.  The fail_reason printed
just after gives a bit more precision about the error.

Change-Id: If556129b612cb6aa9c480b3f863368e48e8a6d4a
Signed-off-by: Simon Marchi <simon.marchi@efficios.com>
Reviewed-on: https://review.lttng.org/c/babeltrace/+/2115
Reviewed-by: Philippe Proulx <eeppeliteloop@gmail.com>
src/cli/babeltrace2.c

index 4cc4234ee646edc8de6a3db7ed1a8750d4f6cce2..ececd63aa9c8cdb86a7a8a69fe33cb649a1af719 100644 (file)
@@ -2099,7 +2099,7 @@ int set_stream_intersections(struct cmd_run_ctx *ctx,
                cfg_comp->params, &query_result,
                &fail_reason);
        if (ret) {
-               BT_CLI_LOGE_APPEND_CAUSE("Component class does not support the `babeltrace.trace-infos` query: %s: "
+               BT_CLI_LOGE_APPEND_CAUSE("Failed to execute `babeltrace.trace-infos` query: %s: "
                        "comp-class-name=\"%s\"", fail_reason,
                        bt_component_class_get_name(comp_cls));
                ret = -1;
This page took 0.027223 seconds and 4 git commands to generate.