Skip to content

Commit

Permalink
fix: segment filter error (#696)
Browse files Browse the repository at this point in the history
  • Loading branch information
gonpombo8 authored May 17, 2022
1 parent 4fd5d45 commit a0916b6
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/main.ts
Original file line number Diff line number Diff line change
Expand Up @@ -12,8 +12,8 @@ log.debug(`Running with NODE_ENV: ${process.env.NODE_ENV}`)
log.debug(`Provided argv: ${JSON.stringify(process.argv)}`)

process.on('unhandledRejection', (error: any) => {
if (error.hostname && error.hostname.includes('.segment.')) {
console.log('\n ⚠️ Analytics api call failed. \n')
if (error?.config?.url?.includes('.segment.')) {
console.log(chalk.dim('\n⚠️ Analytics api call failed. \n'))
return
}

Expand Down

0 comments on commit a0916b6

Please sign in to comment.