AngularJS $http.get().then() not logging errors in Sentry

I’m evaluating Sentry for use in an AngularJS 1.x application.

I’ve noticed that if I add an error to an Ajax response handler that the error is not logged in Sentry. If I change the error code from:

  throw new Error('Just testing an error')


Sentry.captureException('Just testing an error')

The error is logged so I know that Sentry is initialized and available.

What do I need to do to instrument all of my $http.get().then(handleIt) calls?
Similarly, I want to handle $

P.S. Also see StackOverflow question here: