diff --git a/vroom/shell.py b/vroom/shell.py index 63033fc..738aad4 100644 --- a/vroom/shell.py +++ b/vroom/shell.py @@ -285,7 +285,7 @@ def __str__(self): return out.rstrip('\n') -class FakeShellNotWorking(Exception): +class FakeShellNotWorking(vroom.test.Failure): """Called when the fake shell is not working.""" def __init__(self, errors): @@ -293,7 +293,8 @@ def __init__(self, errors): super(FakeShellNotWorking, self).__init__() def __str__(self): - return 'The fake shell is not working as anticipated.' + errors_description = '\n'.join(list(map(str, self.shell_errors))) + return 'The fake shell is not working as anticipated:\n' + errors_description class FakeShellFailure(vroom.test.Failure):