Better error logging for password verification failure

This commit is contained in:
Jakub Trávník 2025-12-01 17:45:28 +01:00
parent f1e59e5931
commit fd4f031963

View file

@ -244,8 +244,10 @@ export function ExportDialog({
} }
// Password verified, proceed with export // Password verified, proceed with export
await performExport(); await performExport();
} catch { } catch (err) {
toast.error("Incorrect password"); toast.error("Verification failed", {
description: err instanceof Error ? err.message : "Unable to verify password. Please check your connection and try again.",
});
} finally { } finally {
setIsVerifying(false); setIsVerifying(false);
} }