web: handle corrupted+migrations: error

This commit is contained in:
Abdullah Atta
2024-05-16 08:40:03 +05:00
parent 780e1e9db0
commit b90cb28637

View File

@@ -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.`,