File tree Expand file tree Collapse file tree 2 files changed +2
-5
lines changed
Expand file tree Collapse file tree 2 files changed +2
-5
lines changed Original file line number Diff line number Diff 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 }
Original file line number Diff line number Diff 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 }
You can’t perform that action at this time.
0 commit comments