bt2: check that port is connected when creating message iterator
authorSimon Marchi <simon.marchi@efficios.com>
Sun, 12 Apr 2020 18:52:20 +0000 (14:52 -0400)
committerPhilippe Proulx <eeppeliteloop@gmail.com>
Tue, 14 Apr 2020 19:59:39 +0000 (15:59 -0400)
Creating a message iterator for a non-connected input port hits a
precondition assertion.  Add some checks in the Python bindings to raise
a more friendly ValueError in that case.

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

No differences found
This page took 0.024454 seconds and 4 git commands to generate.