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

Better exception messages on phantomjs #190

Merged
merged 1 commit into from
Sep 17, 2015

Conversation

ef4
Copy link
Collaborator

@ef4 ef4 commented Sep 16, 2015

Exceptions on phantomjs have a stack property that does not contain
the exception message itself. Which causes us to print only the stack
without the actual error message whenever a test returns a rejected promise.

This change ensures that the error message must appear within our output.

I'm not sure how to test this -- mocking out ok while also using ok
seems very headsplody.

Exceptions on phantomjs have a `stack` property that does not contain
the exception message itself. Which causes us to print only the stack
without the actual error message.

This change ensures that the error message must appear withinn our
output.

I'm not sure how to test this -- mocking out `ok` while also using `ok`
seems very headsplody.
@rwjblue
Copy link
Member

rwjblue commented Sep 16, 2015

A human smoke test here seems good to me. Can you screenshot a before/after example of what this look like with ember test?

@ef4
Copy link
Collaborator Author

ef4 commented Sep 17, 2015

Before:
edward elbereth- - screen 181x49 2015-09-17 13-59-05

After:
edward elbereth- - screen 181x49 2015-09-17 14-02-07

@rwjblue
Copy link
Member

rwjblue commented Sep 17, 2015

ZOMG Thank you!

rwjblue added a commit that referenced this pull request Sep 17, 2015
Better exception messages on phantomjs
@rwjblue rwjblue merged commit 3498c49 into emberjs:master Sep 17, 2015
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.

2 participants