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

Add Application.prototype.handleError #53

Merged
merged 2 commits into from Jan 10, 2018

Conversation

Projects
None yet
2 participants
@javan
Contributor

javan commented Jan 10, 2018

Supply your own error handler function to override the default console.error. Useful for sending errors to a tracking service like Sentry.

const application = Application.start()

application.handleError = (error, message, detail) => {
  console.warn(message, detail)
  Raven.captureException(error)
}
Make error handling configurable with Application#setErrorHandler
Supply your own error handler function to override the default `console.error`.

@sstephenson sstephenson changed the base branch from master to 1-0 Jan 10, 2018

@sstephenson sstephenson added this to the 1.0 milestone Jan 10, 2018

@sstephenson sstephenson changed the title from Add Application#setErrorHandler to Add Application.prototype.handleError Jan 10, 2018

@sstephenson sstephenson merged commit 9690ffa into 1-0 Jan 10, 2018

1 check passed

ci/circleci Your tests passed on CircleCI!
Details

@sstephenson sstephenson deleted the error-handler branch Jan 10, 2018

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment