mirror of https://github.com/buildinspace/peru.git
add __str__ for PrintableError
Summary: This makes it easier to read plugin errors that happen during tests. Reviewers: sean Differential Revision: https://phabricator.buildinspace.com/D119
This commit is contained in:
parent
78dd85c9cd
commit
ff7ef36c7b
|
@ -1,3 +1,6 @@
|
|||
class PrintableError(Exception):
|
||||
def __init__(self, message):
|
||||
self.message = message
|
||||
|
||||
def __str__(self):
|
||||
return self.message
|
||||
|
|
Loading…
Reference in New Issue