more verbose errors for login and verify
This commit is contained in:
parent
4bbf694479
commit
0d1f7c1819
3 changed files with 12 additions and 12 deletions
|
|
@ -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,
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue