web: allow clearing database on database disk image is malformed

This commit is contained in:
Abdullah Atta
2024-03-04 11:04:13 +05:00
parent 54debb035a
commit 5e0217bcb1

View File

@@ -153,7 +153,8 @@ function getErrorHelp(props: FallbackProps) {
const errorText = errorToString(error);
if (
errorText.includes("file is not a database") ||
errorText.includes("unsupported file format")
errorText.includes("unsupported file format") ||
errorText.includes("database disk image is malformed")
) {
return {
explanation: `This error usually means the database file is either corrupt or it could not be decrypted.`,