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:
Jack O'Connor 2014-11-09 16:46:31 -08:00
parent 78dd85c9cd
commit ff7ef36c7b
1 changed files with 3 additions and 0 deletions

View File

@ -1,3 +1,6 @@
class PrintableError(Exception):
def __init__(self, message):
self.message = message
def __str__(self):
return self.message