Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Print error message on failed examples #3181

Merged
merged 3 commits into from Dec 20, 2017

Conversation

parsonsmatt
Copy link
Contributor

@parsonsmatt parsonsmatt commented Dec 20, 2017

When a failed example provides a different error message than expected, it can be difficult to understand why.

This PR prints the given error message, which makes it easy to understand why the error occurred.

Before:

image

After:

image

@hdgarrood
Copy link
Contributor

Looks great; can you show a before/after example for when we hit this code path?

@parsonsmatt
Copy link
Contributor Author

Edited the original comment to include screencaps 😄

@hdgarrood
Copy link
Contributor

I think the "full error messages" part might be getting overwritten by the error message rendering; should we put a newline between that and the call to render the error messages?

Copy link
Contributor

@hdgarrood hdgarrood left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM, thanks!

@kritzcreek
Copy link
Member

Since this seems to be the first of your contributions to get merged would you add yourself to the CONTRIBUTORS.md in the project root please? As soon as this CI run completes and you added yourself I'll merge.

Very happy to have you on board!

@kritzcreek kritzcreek merged commit 6c14cab into purescript:master Dec 20, 2017
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants