log actual exception

This commit is contained in:
Neeraj Gupta 2022-08-29 16:23:09 +05:30
parent bb0af1c795
commit ba82402969
No known key found for this signature in database
GPG key ID: 3C5A1684DC1729E1

View file

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