Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 7 additions & 1 deletion src/utils/telemetry/report-error.ts
Original file line number Diff line number Diff line change
Expand Up @@ -25,10 +25,16 @@ export const reportError = async function (error, config = {}) {
if (isCI) {
return
}

// convert a NotifiableError to an error class
const err = error instanceof Error ? error : typeof error === 'string' ? new Error(error) : error

// `@netlify/config` tags intentional user-input errors (malformed netlify.toml,
// invalid redirects, etc.) with this shape. See @netlify/config/lib/error.js.
// These are not CLI bugs and don't belong in Bugsnag.
if (error?.customErrorInfo?.type === 'resolveConfig') {
return
}

const globalConfig = await getGlobalConfigStore()

const options = JSON.stringify({
Expand Down
Loading