From c121653dc45f593865812d128ced5d0e80834837 Mon Sep 17 00:00:00 2001 From: Shane Kilkelly Date: Thu, 23 Nov 2017 16:22:57 +0000 Subject: [PATCH] Add error-handling to attempt to get user subscription --- .../coffee/Features/Subscription/SubscriptionController.coffee | 1 + 1 file changed, 1 insertion(+) diff --git a/services/web/app/coffee/Features/Subscription/SubscriptionController.coffee b/services/web/app/coffee/Features/Subscription/SubscriptionController.coffee index d37e8e02fe..2a48e8e93c 100644 --- a/services/web/app/coffee/Features/Subscription/SubscriptionController.coffee +++ b/services/web/app/coffee/Features/Subscription/SubscriptionController.coffee @@ -135,6 +135,7 @@ module.exports = SubscriptionController = RecurlyWrapper.getSubscription subscription.recurlySubscription_id, includeAccount: true, (err, usersSubscription)-> + return next(err) if err? account = usersSubscription.account hostedLoginToken = account.hosted_login_token if !hostedLoginToken