Skip to content

Commit a37b66d

Browse files
a-haritilforst
andauthored
better warning message
Co-authored-by: Luca Forstner <[email protected]>
1 parent 4758a9d commit a37b66d

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

packages/nextjs/src/config/webpack.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -475,7 +475,7 @@ function warnAboutMissingonRequestErrorHandler(projectDir: string): void {
475475
return console.warn(
476476
`${chalk.yellow(
477477
'[@sentry/nextjs]',
478-
)} Could not find instrumentation file: https://docs.sentry.io/platforms/javascript/guides/nextjs/manual-setup/#create-initialization-config-files`,
478+
)} Could not find a Next.js instrumentation file. This indicates an incomplete configuration of the Sentry SDK. An instrumentation file is required for the Sentry SDK to be initialized on the server: https://docs.sentry.io/platforms/javascript/guides/nextjs/manual-setup/#create-initialization-config-files`,
479479
);
480480
}
481481

0 commit comments

Comments
 (0)