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
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

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
);
}