cli: improve error logging in set_stream_intersections
authorSimon Marchi <simon.marchi@efficios.com>
Thu, 5 Sep 2019 16:29:21 +0000 (12:29 -0400)
committerSimon Marchi <simon.marchi@efficios.com>
Fri, 6 Sep 2019 18:07:44 +0000 (14:07 -0400)
commit8dfb232c0d0766181d65a7dc287f3aad61410a1f
treeb0d205cb72e8cc68c73d4266d9b1762840950d06
parent3f3d89b4f77852d8df9c11e909e9ed5fa03218ed
cli: improve error logging in set_stream_intersections

I experienced some errors in set_stream_intersections, and found the
error messages to be very generic and non-helpful.  This patch makes the
function use BT_CLI_LOGE_APPEND_CAUSE when possible and produce more
precise error messages.

Change-Id: I4db2859f8f76de95de12c4139c621b068e22d3ba
Signed-off-by: Simon Marchi <simon.marchi@efficios.com>
Reviewed-on: https://review.lttng.org/c/babeltrace/+/2003
Tested-by: jenkins <jenkins@lttng.org>
Reviewed-by: Francis Deslauriers <francis.deslauriers@efficios.com>
src/cli/babeltrace2.c
This page took 0.026867 seconds and 4 git commands to generate.