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

Improve error logging #129

Merged
merged 1 commit into from
Feb 14, 2015
Merged

Improve error logging #129

merged 1 commit into from
Feb 14, 2015

Conversation

jhollingworth
Copy link
Contributor

People have been finding it hard to diagnose where errors come from
because the promises would swallow them. I've added some logging around
places where Marty calls into user code, namely:

  • Store#handleAction: We log the store, action handler, error and action
  • StateMixin#getState: We log the view and error
  • when: We log the fetch, store and error
  • ActionCreator: We log the action type, action, action creator and error

Resolves #127

People have been finding it hard to diagnose where errors come from
because the promises would swallow them. I've added some logging around
places where Marty calls into user code, namely:

- Store#handleAction: We log the store, action handler, error and action
- StateMixin#getState: We log the view and error
- when: We log the fetch, store and error
- ActionCreator: We log the action type, action, action creator and error

Resolves #127
jhollingworth added a commit that referenced this pull request Feb 14, 2015
@jhollingworth jhollingworth merged commit d1a1723 into master Feb 14, 2015
@jhollingworth jhollingworth deleted the logging-errors branch February 14, 2015 11:11
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.

More verbose error messages within promises
1 participant