Skip to content

Commit 168f4e2

Browse files
author
Lukas Holzer
authored
fix: don't report error on CI (#5645)
1 parent 1499259 commit 168f4e2

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

src/utils/telemetry/report-error.mjs

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,8 @@ import { dirname, join } from 'path'
33
import process, { version as nodejsVersion } from 'process'
44
import { fileURLToPath } from 'url'
55

6+
import { isCI } from 'ci-info'
7+
68
import execa from '../execa.mjs'
79
import getGlobalConfig from '../get-global-config.mjs'
810

@@ -19,6 +21,10 @@ const dirPath = dirname(fileURLToPath(import.meta.url))
1921
* @returns {Promise<void>}
2022
*/
2123
export const reportError = async function (error, config = {}) {
24+
if (isCI) {
25+
return
26+
}
27+
2228
const globalConfig = await getGlobalConfig()
2329

2430
const options = JSON.stringify({

0 commit comments

Comments
 (0)