From 2d590a7baef3fb0ec112af19db7f2d9733fce85e Mon Sep 17 00:00:00 2001
From: hnouts <hnouts@grandlyon.com>
Date: Wed, 5 Jul 2023 14:08:45 +0200
Subject: [PATCH] resolving thread

---
 src/index.js | 6 +++---
 1 file changed, 3 insertions(+), 3 deletions(-)

diff --git a/src/index.js b/src/index.js
index 65a9546..768aa69 100644
--- a/src/index.js
+++ b/src/index.js
@@ -226,7 +226,7 @@ async function authenticate(login, password, baseUrl, apiAuthKey) {
     }
   } catch (error) {
     log('debug', error.message)
-    Sentry.captureException(error, {
+    Sentry.captureException(`Authenticate failed: ${error.message}`, {
       tags: {
         section: 'authenticate',
       },
@@ -282,7 +282,7 @@ async function getData(response, baseUrl, apiAuthKey) {
         throw errors.UNKNOWN_ERROR
     }
   } catch (error) {
-    Sentry.captureException(error, {
+    Sentry.captureException(`GetData failed: ${error.message}`, {
       tags: {
         section: 'getData',
       },
@@ -335,7 +335,7 @@ function format(response) {
       }
     })
   } catch (error) {
-    Sentry.captureException(error, {
+    Sentry.captureException(`Format failed: ${error.message}`, {
       tags: {
         section: 'format',
       },
-- 
GitLab