Merge pull request #451 from ente-io/add_exception

Include exception detail in the log
This commit is contained in:
Vishnu Mohandas 2022-08-29 16:25:04 +05:30 committed by GitHub
commit 3b8d8bb4fb
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
2 changed files with 6 additions and 3 deletions

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");

View file

@ -11,7 +11,7 @@ description: ente photos application
# In iOS, build-name is used as CFBundleShortVersionString while build-number used as CFBundleVersion.
# Read more about iOS versioning at
# https://developer.apple.com/library/archive/documentation/General/Reference/InfoPlistKeyReference/Articles/CoreFoundationKeys.html
version: 0.6.28+358
version: 0.6.29+359
environment:
sdk: ">=2.10.0 <3.0.0"