From: Jérémie Galarneau Date: Sat, 11 Oct 2014 19:39:11 +0000 (-0400) Subject: Python bindings: clarify invalid argument type exception X-Git-Tag: v2.0.0-pre1~1486 X-Git-Url: http://git.efficios.com/?p=babeltrace.git;a=commitdiff_plain;h=2d221c9d700c9e519785fad9e87020f4e9897dc1 Python bindings: clarify invalid argument type exception Signed-off-by: Jérémie Galarneau --- diff --git a/bindings/python/babeltrace.i.in b/bindings/python/babeltrace.i.in index b1c4f50b..8ff24b7c 100644 --- a/bindings/python/babeltrace.i.in +++ b/bindings/python/babeltrace.i.in @@ -2821,7 +2821,7 @@ class CTFWriter: """ def __init__(self, stream_class): if not isinstance(stream_class, CTFWriter.StreamClass): - raise TypeError("Invalid stream_class type.") + raise TypeError("Invalid stream_class argument must be of type StreamClass.") self._s = _bt_ctf_stream_create(stream_class._sc) if self._s is None: