Vishnu Mohandas před 4 roky
rodič
revize
a9b98e5cc3
2 změnil soubory, kde provedl 5 přidání a 3 odebrání
  1. 3 1
      lib/ui/password_entry_page.dart
  2. 2 2
      lib/ui/settings_page.dart

+ 3 - 1
lib/ui/password_entry_page.dart

@@ -36,6 +36,7 @@ class PasswordEntryPage extends StatefulWidget {
 class _PasswordEntryPageState extends State<PasswordEntryPage> {
   static const kPasswordStrengthThreshold = 0.4;
 
+  final _logger = Logger("PasswordEntry");
   final _passwordController1 = TextEditingController(),
       _passwordController2 = TextEditingController();
   double _passwordStrength = 0;
@@ -218,7 +219,8 @@ class _PasswordEntryPageState extends State<PasswordEntryPage> {
           Navigator.of(context).popUntil((route) => route.isFirst);
         }
       }
-    } catch (e) {
+    } catch (e, s) {
+      _logger.severe(e, s);
       await dialog.hide();
       showGenericErrorDialog(context);
     }

+ 2 - 2
lib/ui/settings_page.dart

@@ -286,8 +286,8 @@ class _SecuritySectionWidgetState extends State<SecuritySectionWidget> {
               try {
                 recoveryKey = await _getOrCreateRecoveryKey();
                 await dialog.hide();
-              } catch (e) {
-                Logger("SecuritySection").severe(e);
+              } catch (e, s) {
+                Logger("SecuritySection").severe(e, s);
                 await dialog.hide();
                 showGenericErrorDialog(context);
                 return;