Replace Sentry.captureMessage with Sentry.captureException
Problem
For some reason we use Sentry.captureMessage for capturing exceptions and that leads to several problems:
- Unhelpful messages in out status channel in Slack. See the image below.
-
captureMessageautomatically assigns theinfolevel to the message which breaks the error statistic becausecaptureExceptionsets the level tofatal.
Proposal
Replace all occurrences of Sentry.captureMessage with Sentry.captureException in places where we capture exceptions.
