bt2: reverse order of printed causes in _Error.__str__
authorSimon Marchi <simon.marchi@efficios.com>
Mon, 2 Dec 2019 16:35:11 +0000 (11:35 -0500)
committerSimon Marchi <simon.marchi@efficios.com>
Mon, 2 Dec 2019 17:09:02 +0000 (17:09 +0000)
To match how the CLI prints them.

Change-Id: Ief913b119b169bf9f620531f8763db93e19bda27
Reviewed-on: https://review.lttng.org/c/babeltrace/+/2556
CI-Build: Simon Marchi <simon.marchi@efficios.com>
Tested-by: jenkins <jenkins@lttng.org>
Reviewed-by: Simon Marchi <simon.marchi@efficios.com>
src/bindings/python/bt2/bt2/error.py

index 4e3e53f0314f7a7c5331d97cec45374ed3f48f46..a50827a85b3889d3c86b4fb780d20df4d20b0c0a 100644 (file)
@@ -213,6 +213,6 @@ class _Error(Exception, abc.Sequence):
 
     def __str__(self):
         s = self._msg + '\n'
-        for c in self:
+        for c in reversed(self):
             s += str(c) + '\n'
         return s
This page took 0.026077 seconds and 4 git commands to generate.