Преглед изворни кода

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 година
родитељ
комит
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
       }
     }
   },