summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorChris Johns <chrisj@rtems.org>2019-05-19 10:39:39 +1000
committerChris Johns <chrisj@rtems.org>2019-05-19 10:39:39 +1000
commitad56c6b1c4582d5121da925551ab1a0db012677a (patch)
tree1a32d7319ab7a9b6a52fce76c8aba6706246ef87
parent6: Update unstable RTEMS 6 tool chain (diff)
downloadrtems-source-builder-ad56c6b1c4582d5121da925551ab1a0db012677a.tar.bz2
sb: Fix error handling on thread exceptions when bootstraping.
-rw-r--r--source-builder/sb/bootstrap.py2
-rw-r--r--source-builder/sb/error.py4
2 files changed, 3 insertions, 3 deletions
diff --git a/source-builder/sb/bootstrap.py b/source-builder/sb/bootstrap.py
index e56612b..a91130d 100644
--- a/source-builder/sb/bootstrap.py
+++ b/source-builder/sb/bootstrap.py
@@ -116,7 +116,7 @@ class command:
def reraise(self):
if self.result is not None:
- raise self.result[0](self.result[1]).with_traceback(self.result[2])
+ raise self.result[0](self.result[1])
class autoreconf:
diff --git a/source-builder/sb/error.py b/source-builder/sb/error.py
index 6a99b0e..5ea19d3 100644
--- a/source-builder/sb/error.py
+++ b/source-builder/sb/error.py
@@ -33,12 +33,12 @@ class error(Exception):
class general(error):
"""Raise for a general error."""
def __init__(self, what):
- self.set_output('error: ' + what)
+ self.set_output('error: ' + str(what))
class internal(error):
"""Raise for an internal error."""
def __init__(self, what):
- self.set_output('internal error: ' + what)
+ self.set_output('internal error: ' + str(what))
class exit(error):
"""Raise for to exit."""