Treat "file is not a database" as database corruption

This commit is contained in:
Fedor Indutny
2021-11-17 22:17:45 +01:00
committed by GitHub
parent c63bf11a8f
commit 54c60ebb4f

View File

@@ -5,6 +5,7 @@ export function isCorruptionError(error?: Error): boolean {
return (
error?.message?.includes('SQLITE_CORRUPT') ||
error?.message?.includes('database disk image is malformed') ||
error?.message?.includes('file is not a database') ||
false
);
}