diff --git a/src/index.js b/src/index.js index b99e508884f107949bef0d80bef9c81a1d2467b3..a3edbb77840ce899598afa2afa7c7bd7710b1b0d 100644 --- a/src/index.js +++ b/src/index.js @@ -119,10 +119,13 @@ async function start(fields, cozyParameters, doRetry = true) { return start(fields, cozyParameters, false) } if (err.message.search('ADAM-DC-0008') > 0) { - log('debug', 'No consent can be found for this customer and this usage point') + log( + 'debug', + 'No consent can be found for this customer and this usage point' + ) throw errors.USER_ACTION_NEEDED_OAUTH_OUTDATED } - log('error', `Error during authentication: ${err.message}`) + log('error', `Error during authentication: ${err.message}`) throw errors.LOGIN_FAILED } else { log('error', 'caught an unexpected error')