Better error logging for password verification failure
This commit is contained in:
parent
f1e59e5931
commit
fd4f031963
1 changed files with 4 additions and 2 deletions
|
|
@ -244,8 +244,10 @@ export function ExportDialog({
|
|||
}
|
||||
// Password verified, proceed with export
|
||||
await performExport();
|
||||
} catch {
|
||||
toast.error("Incorrect password");
|
||||
} catch (err) {
|
||||
toast.error("Verification failed", {
|
||||
description: err instanceof Error ? err.message : "Unable to verify password. Please check your connection and try again.",
|
||||
});
|
||||
} finally {
|
||||
setIsVerifying(false);
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in a new issue