diff --git a/src/helpers/parsing.js b/src/helpers/parsing.js index caffed89dc715f5a1525b2e2aa691a405e840759..cad185aea3589c7ee10bebcd9c5beb028c482c61 100644 --- a/src/helpers/parsing.js +++ b/src/helpers/parsing.js @@ -1,5 +1,5 @@ // @ts-check -const { log } = require('cozy-konnector-libs') +const { log, errors } = require('cozy-konnector-libs') const moment = require('moment') const Sentry = require('@sentry/node') @@ -239,7 +239,7 @@ function parsePointId(pointId) { pointId: pointId, }, }) - throw new Error(errorMessage) + throw new Error(errors.USER_ACTION_NEEDED_ACCOUNT_REMOVED) } }