Log subscription errors.

This commit is contained in:
Paulo Reis 2016-08-23 09:59:46 +01:00
parent 23ed1e2aa3
commit 362d75ef81

View file

@ -121,6 +121,7 @@ define [
completeSubscription = (err, recurly_token_id) -> completeSubscription = (err, recurly_token_id) ->
$scope.validation.errorFields = {} $scope.validation.errorFields = {}
if err? if err?
event_tracking.sendMB "subscription-error", err
# We may or may not be in a digest loop here depending on # We may or may not be in a digest loop here depending on
# whether recurly could do validation locally, so do it async # whether recurly could do validation locally, so do it async
$scope.$evalAsync () -> $scope.$evalAsync () ->