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

[BUGFIX beta] Ensure wrapped errors are logged properly. #10475

Merged
merged 1 commit into from
Feb 16, 2015

Conversation

stefanpenner
Copy link
Member

ember-data and ic-ajax tag rejections with jqxhr’s with the original error when possible. This error is appended as jqxhr.errorThrown. Logging this error, dramatically improves debugability of request related transition failures

before:

screen shot 2015-02-16 at 7 52 46 am

after:
screen shot 2015-02-16 at 7 51 53 am

@rwjblue
Copy link
Member

rwjblue commented Feb 16, 2015

Can you add a test for this?

@rwjblue
Copy link
Member

rwjblue commented Feb 16, 2015

These are rough examples of some existing tests for the router error logging: https://github.com/emberjs/ember.js/blob/master/packages/ember/tests/routing/basic_test.js#L3176-3239

@stefanpenner
Copy link
Member Author

Can you add a test for this?

tonight or tomorrow yes

ember-data and ic-ajax tag rejections with jqxhr’s with the original error when possible. This error is appended as jqxhr.errorThrown. Logging this error, dramatically improves debugability of request related transition failures
@rwjblue rwjblue changed the title [Bugfix beta] router now logs, wrapped errors. [BUGFIX beta] Ensure wrapped errors are logged properly. Feb 16, 2015
@rwjblue
Copy link
Member

rwjblue commented Feb 16, 2015

Added test, should be good to go when Travis is happy.

rwjblue added a commit that referenced this pull request Feb 16, 2015
[BUGFIX beta] Ensure wrapped errors are logged properly.
@rwjblue rwjblue merged commit f587341 into emberjs:master Feb 16, 2015
@rwjblue rwjblue deleted the log-error-error-thrown branch February 16, 2015 16:26
@rwjblue
Copy link
Member

rwjblue commented Feb 16, 2015

Pulled into beta channel for 1.11.0-beta.3.

@stefanpenner
Copy link
Member Author

danke

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