Skip to content
Snippets Groups Projects
Commit 8ef26c6e authored by Bastien DUMONT's avatar Bastien DUMONT :angel:
Browse files

add error message

parent d5c1cf44
No related branches found
No related tags found
1 merge request!27Resolve "Mise en place de sentry - sge"
......@@ -31,7 +31,9 @@ async function findUserAddress(url, apiAuthKey, userLogin, pointId) {
headers: sgeHeaders,
xml: consulterDonneesTechniquesContractuelles(pointId, userLogin, false),
}).catch(err => {
log('error', 'Error while fetching user : ' + err)
const errorMessage = 'Error while fetching user : ' + err
log('error', errorMessage)
Sentry.captureException(errorMessage)
throw errors.VENDOR_DOWN
})
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment