From c4c1ada0ba1bb6abe8895e778734fe78a626bc63 Mon Sep 17 00:00:00 2001 From: Jan Piotrowski Date: Mon, 15 May 2023 16:06:06 +0200 Subject: [PATCH] chore: Change shortlink for bundler-investigation on error case (#19247) --- .../client/src/runtime/core/engines/library/LibraryEngine.ts | 2 +- packages/client/tests/e2e/bundler-detection-error/tests/main.ts | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/packages/client/src/runtime/core/engines/library/LibraryEngine.ts b/packages/client/src/runtime/core/engines/library/LibraryEngine.ts index 36d0bf3aa5ac..83459119e46c 100644 --- a/packages/client/src/runtime/core/engines/library/LibraryEngine.ts +++ b/packages/client/src/runtime/core/engines/library/LibraryEngine.ts @@ -110,7 +110,7 @@ Find out why and learn how to fix this: https://pris.ly/d/schema-not-found-nextj } else if (config.isBundled === true) { throw new PrismaClientInitializationError( `Prisma Client could not find its \`schema.prisma\`. This is likely caused by a bundling step, which leads to \`schema.prisma\` not being copied near the resulting bundle. We would appreciate if you could take the time to share some information with us. -Please help us by answering a few questions: https://pris.ly/bundler-investigation`, +Please help us by answering a few questions: https://pris.ly/bundler-investigation-error`, config.clientVersion!, ) } diff --git a/packages/client/tests/e2e/bundler-detection-error/tests/main.ts b/packages/client/tests/e2e/bundler-detection-error/tests/main.ts index a1fac902cf8b..fab2da36e023 100644 --- a/packages/client/tests/e2e/bundler-detection-error/tests/main.ts +++ b/packages/client/tests/e2e/bundler-detection-error/tests/main.ts @@ -43,7 +43,7 @@ test('bundled prisma client will fail if generated client is gone', async () => await expect(somePrismaCall()).rejects.toThrowErrorMatchingInlineSnapshot(` "Prisma Client could not find its \`schema.prisma\`. This is likely caused by a bundling step, which leads to \`schema.prisma\` not being copied near the resulting bundle. We would appreciate if you could take the time to share some information with us. -Please help us by answering a few questions: https://pris.ly/bundler-investigation" +Please help us by answering a few questions: https://pris.ly/bundler-investigation-error" `) })