diff --git a/ts/sql/errors.ts b/ts/sql/errors.ts index 9dc00d6f437..1666511bbf5 100644 --- a/ts/sql/errors.ts +++ b/ts/sql/errors.ts @@ -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 ); }