bt2: print actual and expected lengths in _StaticArrayField._set_value error message
authorSimon Marchi <simon.marchi@efficios.com>
Tue, 24 Sep 2019 18:38:51 +0000 (14:38 -0400)
committerSimon Marchi <simon.marchi@efficios.com>
Thu, 26 Sep 2019 01:52:28 +0000 (21:52 -0400)
commit74695c0d6e16c553e6d65ec184d5a927a4e84507
tree91d4031d7243f2f51afc457042693f1a1e096a18
parent8d3790e5acfb8b650e8650145e989f0fd598279c
bt2: print actual and expected lengths in _StaticArrayField._set_value error message

I think it can help the user figure out what's wrong if we give the
lengths of the field and the passed value in the error message.

Change-Id: I94fb7ca04724d5d7af701df88aaedc195b1736fd
Signed-off-by: Simon Marchi <simon.marchi@efficios.com>
Reviewed-on: https://review.lttng.org/c/babeltrace/+/2088
Reviewed-by: Francis Deslauriers <francis.deslauriers@efficios.com>
src/bindings/python/bt2/bt2/field.py
This page took 0.024518 seconds and 4 git commands to generate.