Skip to content

Commit e13091f

Browse files
committed
fix: remove uncessary error tracking
1 parent d3af1ad commit e13091f

File tree

2 files changed

+2
-5
lines changed

2 files changed

+2
-5
lines changed

src/index.ts

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -67,14 +67,11 @@ export default async function () {
6767
// ignore
6868
exitCode = e.exitCode
6969
} else if (e instanceof CliError) {
70-
telemetry.trackError(e)
7170
console.error(red(e.message))
7271
} else {
7372
if (e instanceof Error) {
74-
telemetry.trackError(e)
7573
console.error(red(`Unhandled error: ${e.message}`))
7674
} else {
77-
telemetry.trackError(new Error(String(e)))
7875
console.error(red(`Unhandled error: ${String(e)}`))
7976
}
8077
}

src/zmodel-parser.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -75,7 +75,7 @@ function loadPrismaConfig(schemaDir: string): string | null {
7575
const config = configFn(env)
7676
return config?.datasource?.url
7777
} catch (error) {
78-
if (error instanceof Error && error.message.includes('Environment variable')) {
78+
if (error instanceof Error) {
7979
throw error
8080
}
8181
console.warn(`Warning: Failed to parse prisma.config.ts: ${error}`)
@@ -144,7 +144,7 @@ function parseDatasource(
144144
// If still no URL found, throw error
145145
if (url == null) {
146146
throw new CliError(
147-
'No datasource URL found. For Prisma 7, ensure prisma.config.ts exists with datasource configuration, or provide the URL via -d option.'
147+
'No datasource URL found. For Prisma 7, ensure prisma.config.ts exists with datasource configuration or directly provide the URL via -d option.'
148148
)
149149
}
150150
}

0 commit comments

Comments
 (0)