Skip to content

A fully open source & end-to-end encrypted note taking alternative to Evernote.

desktop: handle `Error while decrypting the ciphertext provided to safeStorage.decryptString.` error

Abdullah Atta846c949cd185
diff --git a/apps/web/src/components/error-boundary/index.tsx b/apps/web/src/components/error-boundary/index.tsx
index 42080eaf3..1cc7f0d0e 100644
--- a/apps/web/src/components/error-boundary/index.tsx
+++ b/apps/web/src/components/error-boundary/index.tsx
@@ -199,7 +199,10 @@ function getErrorHelp(props: FallbackProps) {
errorText.includes("null function or function signature mismatch") ||
errorText.includes("malformed database schema") ||
/table ".+?" already exists/.test(errorText) ||
- errorText.includes("corrupted migrations:")
+ errorText.includes("corrupted migrations:") ||
+ errorText.includes(
+ "Error while decrypting the ciphertext provided to safeStorage.decryptString"
+ )
) {
return {
explanation: strings.databaseCorruptExplain(),