From 20d3ea91dca6b31b08a7d5728aa0a3d50f4ddd0b Mon Sep 17 00:00:00 2001 From: Sorunome Date: Mon, 7 Sep 2020 15:42:24 +0200 Subject: [PATCH] chore: Add more debugging logs to debug key decrypt issues --- lib/views/settings.dart | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/lib/views/settings.dart b/lib/views/settings.dart index bb664d0..c357d37 100644 --- a/lib/views/settings.dart +++ b/lib/views/settings.dart @@ -142,11 +142,15 @@ class _SettingsState extends State { try { handle.unlock(recoveryKey: str); valid = true; - } catch (_) { + } catch (e, s) { + debugPrint('Couldn\'t use recovery key: ' + e.toString()); + debugPrint(s.toString()); try { handle.unlock(passphrase: str); valid = true; - } catch (_) { + } catch (e, s) { + debugPrint('Couldn\'t use recovery passphrase: ' + e.toString()); + debugPrint(s.toString()); valid = false; } }