sb: Fix error handling on thread exceptions when bootstraping.

This commit is contained in:
Chris Johns 2019-05-19 10:39:39 +10:00
parent c1431be196
commit ad56c6b1c4
2 changed files with 3 additions and 3 deletions

View File

@ -116,7 +116,7 @@ class command:
def reraise(self): def reraise(self):
if self.result is not None: 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: class autoreconf:

View File

@ -33,12 +33,12 @@ class error(Exception):
class general(error): class general(error):
"""Raise for a general error.""" """Raise for a general error."""
def __init__(self, what): def __init__(self, what):
self.set_output('error: ' + what) self.set_output('error: ' + str(what))
class internal(error): class internal(error):
"""Raise for an internal error.""" """Raise for an internal error."""
def __init__(self, what): def __init__(self, what):
self.set_output('internal error: ' + what) self.set_output('internal error: ' + str(what))
class exit(error): class exit(error):
"""Raise for to exit.""" """Raise for to exit."""