diff --git a/services/web/app/src/Features/Subscription/RecurlyWrapper.js b/services/web/app/src/Features/Subscription/RecurlyWrapper.js index 3a7fd2a936..31c0f33e3e 100644 --- a/services/web/app/src/Features/Subscription/RecurlyWrapper.js +++ b/services/web/app/src/Features/Subscription/RecurlyWrapper.js @@ -467,8 +467,10 @@ const RecurlyWrapper = { }, 'error returned from recurly' ) - // TODO: this should be an Error object not a string - error = `Recurly API returned with status code: ${response.statusCode}` + error = new OError( + `Recurly API returned with status code: ${response.statusCode}`, + { statusCode: response.statusCode } + ) } return callback(error, response, body) })