From 0a586353c5cce5bfe0ad4cb0e138368f603faf05 Mon Sep 17 00:00:00 2001 From: Marcos Passos Date: Fri, 6 Sep 2024 18:08:28 -0600 Subject: [PATCH] Update error messages --- src/config/context.test.ts | 2 +- src/config/context.ts | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/src/config/context.test.ts b/src/config/context.test.ts index d431266..92907e2 100644 --- a/src/config/context.test.ts +++ b/src/config/context.test.ts @@ -39,7 +39,7 @@ describe('getRequestContext', () => { it('should throw an error when the client ID is missing', () => { expect(() => getRequestContext(new Headers(), createCookieJar())).toThrow( 'Croct\'s Client ID is missing. Did you forget to configure Croct\'s middleware? ' - + 'For help, see: https://croct.help/sdk/nextjs/missing-provider', + + 'For help, see: https://croct.help/sdk/nextjs/missing-middleware', ); }); diff --git a/src/config/context.ts b/src/config/context.ts index 83cefbe..8cd9638 100644 --- a/src/config/context.ts +++ b/src/config/context.ts @@ -24,7 +24,7 @@ export function getRequestContext(headers: HeaderReader, cookies: CookieReader): if (clientId === null) { throw new Error( 'Croct\'s Client ID is missing. Did you forget to configure Croct\'s middleware? ' - + 'For help, see: https://croct.help/sdk/nextjs/missing-provider', + + 'For help, see: https://croct.help/sdk/nextjs/missing-middleware', ); }