Skip to content

Commit

Permalink
Update error messages
Browse files Browse the repository at this point in the history
  • Loading branch information
marcospassos committed Sep 7, 2024
1 parent a1940d5 commit 0a58635
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion src/config/context.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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',
);
});

Expand Down
2 changes: 1 addition & 1 deletion src/config/context.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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',
);
}

Expand Down

0 comments on commit 0a58635

Please sign in to comment.