From 0457a1ae55cd92797015660202c182be7fe1f897 Mon Sep 17 00:00:00 2001 From: Simon Marchi Date: Wed, 2 Oct 2019 11:33:03 -0400 Subject: [PATCH] cli: update error message in set_stream_intersections 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 Reviewed-on: https://review.lttng.org/c/babeltrace/+/2115 Reviewed-by: Philippe Proulx --- src/cli/babeltrace2.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/cli/babeltrace2.c b/src/cli/babeltrace2.c index 4cc4234e..ececd63a 100644 --- a/src/cli/babeltrace2.c +++ b/src/cli/babeltrace2.c @@ -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; -- 2.34.1