diff --git a/src/index.js b/src/index.js index 65a95460decca0838e494f4353af6ac5e6ac6dfb..768aa69c9cf357892965343aaf73489503cc42b4 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', },