Browse Source

log actual exception

Neeraj Gupta 2 years ago
parent
commit
ba82402969
1 changed files with 5 additions and 2 deletions
  1. 5 2
      lib/core/configuration.dart

+ 5 - 2
lib/core/configuration.dart

@@ -245,7 +245,10 @@ class Configuration {
   ) async {
   ) async {
     _logger.info('Start decryptAndSaveSecrets');
     _logger.info('Start decryptAndSaveSecrets');
     validatePreVerificationStateCheck(
     validatePreVerificationStateCheck(
-        attributes, password, getEncryptedToken());
+      attributes,
+      password,
+      getEncryptedToken(),
+    );
     _logger.info('state validation done');
     _logger.info('state validation done');
     final kek = await CryptoUtil.deriveKey(
     final kek = await CryptoUtil.deriveKey(
       utf8.encode(password),
       utf8.encode(password),
@@ -263,7 +266,7 @@ class Configuration {
         Sodium.base642bin(attributes.keyDecryptionNonce),
         Sodium.base642bin(attributes.keyDecryptionNonce),
       );
       );
     } catch (e) {
     } catch (e) {
-      _logger.severe('master-key failed, incorrect password?');
+      _logger.severe('master-key failed, incorrect password?', e);
       throw Exception("Incorrect password");
       throw Exception("Incorrect password");
     }
     }
     _logger.info("master-key done");
     _logger.info("master-key done");