A fully open source & end-to-end encrypted note taking alternative to Evernote.
TypeScript asp-net-coredotnet-coreelectronfosshacktoberfestnote-managmentnote-takingnote-taking-appnotebooknotesnotes-appopen-sourceopensourceprivacyproductivityreactreact-nativereactjsself-hosted
web: handle more errors in error boundary
Abdullah Atta3e300d98c49c
diff --git a/apps/web/src/components/error-boundary/index.tsx b/apps/web/src/components/error-boundary/index.tsxindex 89a498874..4742ae6fb 100644--- a/apps/web/src/components/error-boundary/index.tsx+++ b/apps/web/src/components/error-boundary/index.tsx@@ -154,7 +154,9 @@ function getErrorHelp(props: FallbackProps) {if (errorText.includes("file is not a database") ||errorText.includes("unsupported file format") ||- errorText.includes("database disk image is malformed")+ errorText.includes("database disk image is malformed") ||+ errorText.includes("null function or function signature mismatch") ||+ errorText.includes("malformed database schema")) {return {explanation: `This error usually means the database file is either corrupt or it could not be decrypted.`,@@ -166,7 +168,6 @@ function getErrorHelp(props: FallbackProps) {await useKeyStore.getState().clear();const dialect = createDialect("notesnook");const driver = dialect.createDriver();- if (!IS_DESKTOP_APP) await driver.init();await driver.delete();resetErrorBoundary();}@@ -182,7 +183,6 @@ function getErrorHelp(props: FallbackProps) {await useKeyStore.getState().clear();const dialect = createDialect("notesnook");const driver = dialect.createDriver();- if (!IS_DESKTOP_APP) await driver.init();await driver.delete();resetErrorBoundary();}