Skip to content

Commit

Permalink
Treat "file is not a database" as database corruption
Browse files Browse the repository at this point in the history
Co-authored-by: Fedor Indutny <79877362+indutny-signal@users.noreply.github.com>
  • Loading branch information
automated-signal and indutny-signal committed Nov 17, 2021
1 parent 05a79c7 commit 4e5ccb5
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions ts/sql/errors.ts
Expand Up @@ -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
);
}

0 comments on commit 4e5ccb5

Please sign in to comment.