From 03d643257373c9bb4f47c00823f4d72bf63f265f Mon Sep 17 00:00:00 2001 From: Siddharth Suresh Date: Wed, 31 Jul 2024 19:44:10 +0530 Subject: [PATCH] Update packages/blitz/src/errors.ts --- packages/blitz/src/errors.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/packages/blitz/src/errors.ts b/packages/blitz/src/errors.ts index 97cedd7c90..f2f82461bd 100644 --- a/packages/blitz/src/errors.ts +++ b/packages/blitz/src/errors.ts @@ -92,7 +92,7 @@ export class PaginationArgumentError extends Error { let _blitzErrorClassRegistered = false export function registerBlitzErrorClasses() { - if (_blitzErrorClassRegistered || isNotInUserTestEnvironment()) return + if (_blitzErrorClassRegistered || !isNotInUserTestEnvironment()) return SuperJson.registerClass(AuthenticationError, { identifier: "BlitzAuthenticationError", allowProps: errorProps,