Python bindings: clarify invalid argument type exception
authorJérémie Galarneau <jeremie.galarneau@efficios.com>
Sat, 11 Oct 2014 19:39:11 +0000 (15:39 -0400)
committerJérémie Galarneau <jeremie.galarneau@efficios.com>
Sat, 11 Oct 2014 19:39:11 +0000 (15:39 -0400)
Signed-off-by: Jérémie Galarneau <jeremie.galarneau@efficios.com>
bindings/python/babeltrace.i.in

index b1c4f50bea3ea54454c4ed12aa1cadeb1bb67288..8ff24b7c564b198bf3d2da8f1ac205dfdf1bfefb 100644 (file)
@@ -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:
This page took 0.025303 seconds and 4 git commands to generate.