Treat "file is not a database" as database corruption
Co-authored-by: Fedor Indutny <79877362+indutny-signal@users.noreply.github.com>
This commit is contained in:
parent
05a79c7054
commit
4e5ccb5ed4
|
@ -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 New Issue