What’s the recommended approach to catching a browser’s Promise rejection and logging it with a custom message?
e.g.
.catch(function(err) {
Raven.captureException('Error in user creation code', err);
}
However I’m not sure that captureException supports two parameters, or how much useful information that err will have. e.g. I’ve seen references to err.reason, err.stack, etc.
or would you recommend perhaps Raven.captureMessage('unhandled rejection', err.reason)? I thought that might result in every uncaught promise being grouped together mistakenly as the same problem.