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
|
// 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);
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue