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)
committerJérémie Galarneau <jeremie.galarneau@efficios.com>
Thu, 3 Oct 2019 14:45:11 +0000 (10:45 -0400)
commite5e6a30af8f0ac9dd05710520010b810cd47beb9
treef8708952cfb6ca432da9d8ba67a57991d4e5506f
parent13b81b5d9cca1fe1bafe18734edb90717eb771da
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.025253 seconds and 4 git commands to generate.