Treat "file is not a database" as database corruption
This commit is contained in:
parent
c63bf11a8f
commit
54c60ebb4f
1 changed files with 1 additions and 0 deletions
|
@ -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
|
||||
);
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue