فهرست منبع

Merge pull request #451 from ente-io/add_exception

Include exception detail in the log
Vishnu Mohandas 2 سال پیش
والد
کامیت
3b8d8bb4fb
2فایلهای تغییر یافته به همراه6 افزوده شده و 3 حذف شده
  1. 5 2
      lib/core/configuration.dart
  2. 1 1
      pubspec.yaml

+ 5 - 2
lib/core/configuration.dart

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

+ 1 - 1
pubspec.yaml

@@ -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"