Skip to content

Commit

Permalink
Updates
Browse files Browse the repository at this point in the history
  • Loading branch information
philipp-spiess committed Mar 25, 2024
1 parent acde0c6 commit 9d15126
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions vscode/src/services/sentry/sentry.ts
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,7 @@ export abstract class SentryService {

private prepareReconfigure(): void {
try {
const isProd = process.env.NODE_ENV === 'production'
const isProd = process.env.NODE_ENV !== 'production'

// Used to enable Sentry reporting in the development environment.
const isSentryEnabled = process.env.ENABLE_SENTRY === 'true'
Expand Down Expand Up @@ -90,7 +90,7 @@ export function shouldErrorBeReported(error: unknown, insideAgent: boolean): boo
}

// Silencing our #1 reported error
if (isError(error) && error.message?.includes("Unexpected token '<', \"<!DOCTYPE")) {
if (isError(error) && error.message?.includes("Unexpected token '<'")) {
return false
}

Expand Down

0 comments on commit 9d15126

Please sign in to comment.