Skip to content

Print error message on failed examples#3181

Merged
kritzcreek merged 3 commits intopurescript:masterfrom
parsonsmatt:print-error-message
Dec 20, 2017
Merged

Print error message on failed examples#3181
kritzcreek merged 3 commits intopurescript:masterfrom
parsonsmatt:print-error-message

Conversation

@parsonsmatt
Copy link
Copy Markdown
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
Copy Markdown
Contributor

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

@parsonsmatt
Copy link
Copy Markdown
Contributor Author

Edited the original comment to include screencaps 😄

@hdgarrood
Copy link
Copy Markdown
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
Copy Markdown
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
Copy Markdown
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.

3 participants