Skip to content
Snippets Groups Projects
Commit 6743f8ce authored by Hugo NOUTS's avatar Hugo NOUTS
Browse files

captureMessage instead of exception to reduce duplicated error

parent 3545c653
Branches
Tags
2 merge requests!29merge master into dev,!27detailed sentry logs
Pipeline #63470 passed
......@@ -109,7 +109,14 @@ async function start(fields, cozyParameters) {
transaction.setStatus(Tracing.SpanStatus.Ok)
transaction.finish()
} catch (error) {
Sentry.captureException(error)
const errorMessage = `EGL konnector encountered an error. Response data: ${JSON.stringify(
error.message
)}`
Sentry.captureMessage(errorMessage, {
tags: {
section: 'start',
},
})
transaction.setStatus(Tracing.SpanStatus.Aborted)
transaction.finish()
await Sentry.flush()
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment