[rtems-source-builder commit] sb: Fix error handling on thread exceptions when bootstraping.
Chris Johns
chrisj at rtems.org
Sun May 19 00:39:48 UTC 2019
Module: rtems-source-builder
Branch: master
Commit: ad56c6b1c4582d5121da925551ab1a0db012677a
Changeset: http://git.rtems.org/rtems-source-builder/commit/?id=ad56c6b1c4582d5121da925551ab1a0db012677a
Author: Chris Johns <chrisj at rtems.org>
Date: Sun May 19 10:39:39 2019 +1000
sb: Fix error handling on thread exceptions when bootstraping.
---
source-builder/sb/bootstrap.py | 2 +-
source-builder/sb/error.py | 4 ++--
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."""
More information about the vc
mailing list