Просмотр исходного кода

Merge pull request #22592 from overleaf/em-swallowed-error-recurly-wrapper

Do not swallow errors when communicating with Recurly

GitOrigin-RevId: 152f75dce10bd13f0a1655118de2de4f3a03ba08
Mathias Jakobsen 1 год назад
Родитель
Сommit
8b0aae34ed
1 измененных файлов с 2 добавлено и 0 удалено
  1. 2 0
      services/web/app/src/Features/Subscription/RecurlyWrapper.js

+ 2 - 0
services/web/app/src/Features/Subscription/RecurlyWrapper.js

@@ -443,6 +443,8 @@ const promises = {
           `Recurly API returned with status code: ${error.response.status}`,
           { statusCode: error.response.status }
         )
+      } else {
+        throw error
       }
     }
   },