From c7d44442b67367a3436f82cec2ece322a6849186 Mon Sep 17 00:00:00 2001
From: Bastien Dumont <bdumont@grandlyon.com>
Date: Thu, 30 May 2024 15:51:18 +0200
Subject: [PATCH] chore: update error

---
 src/index.js | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/src/index.js b/src/index.js
index 0097214..b3e57b2 100755
--- a/src/index.js
+++ b/src/index.js
@@ -109,7 +109,7 @@ async function start(fields, cozyParameters) {
   try {
     if (!pce) {
       log('error', 'No PCE found')
-      throw errors.VENDOR_DOWN
+      throw errors.USER_ACTION_NEEDED
     }
     log('info', `using PCE: ${pce}`)
     const { access_token } = await getAuthToken(grdfId, grdfSecret)
-- 
GitLab