Closed alphapapa closed 4 years ago
I reverted this change, as the side effects were not very pleasant. See the commit message of b297b1dbfa21c87ffbcfc12d19262765387848de.
A better way of formatting the messages would undoubtably be nice, but this was unfortunately not it.
Thanks. So if I'm understanding correctly, the problem is that the call to buttercup-fail
is itself included in the traceback, which duplicates the failure message in the output. That was already a problem, but the newlines in the change exacerbate it. Right?
Yes, thats right. I guess we could get similar problems in the backtrace without this change, but I don't remember any so extreme. Maybe we can solve it with the backtrace formatting functions.
Add newlines to expect-match-phrase to make output human-readable.
Here's some example output before the change:
And after the change:
As you can see, the second example is much more readable, and a human can easily see where the list of strings begins to differ.
This may not be the only place in the code where this kind of change would be helpful, but it solves my current need, so I'm only proposing this one.
Thanks.