From b90cb28637f296fc978d092fc90b718a318e39cb Mon Sep 17 00:00:00 2001 From: Abdullah Atta Date: Thu, 16 May 2024 08:40:03 +0500 Subject: [PATCH] web: handle `corrupted+migrations:` error --- apps/web/src/components/error-boundary/index.tsx | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/apps/web/src/components/error-boundary/index.tsx b/apps/web/src/components/error-boundary/index.tsx index ad0cd7934..a4a553cc0 100644 --- a/apps/web/src/components/error-boundary/index.tsx +++ b/apps/web/src/components/error-boundary/index.tsx @@ -164,7 +164,8 @@ function getErrorHelp(props: FallbackProps) { errorText.includes("unsupported file format") || errorText.includes("null function or function signature mismatch") || errorText.includes("malformed database schema") || - /table ".+?" already exists/.test(errorText) + /table ".+?" already exists/.test(errorText) || + errorText.includes("corrupted migrations:") ) { return { explanation: `This error usually means the database file is either corrupt or it could not be decrypted.`,