more verbose errors for login and verify

This commit is contained in:
Henry Hiles 2026-03-26 15:53:42 -04:00
commit 0d1f7c1819
Signed by: Henry-Hiles
SSH key fingerprint: SHA256:VKQUdS31Q90KvX7EkKMHMBpUspcmItAh86a+v7PGiIs
3 changed files with 12 additions and 12 deletions

View file

@ -48,12 +48,12 @@ class VerifyPage extends HookConsumerWidget {
isVerifying.value = true;
final success = await ref
final error = await ref
.watch(ClientController.provider.notifier)
.verify(passphraseController.text);
snackbar.close();
if (!success) {
if (error != null) {
isVerifying.value = false;
if (context.mounted) {
scaffoldMessenger.showSnackBar(
@ -62,7 +62,7 @@ class VerifyPage extends HookConsumerWidget {
context,
).colorScheme.errorContainer,
content: Text(
"Verification failed. Is your passphrase correct?",
"Verification failed. Is your passphrase correct?\nError: $error",
style: TextStyle(
color: Theme.of(
context,