mirror of
https://github.com/Qortal/qortal.git
synced 2025-03-26 23:44:34 +00:00
More logging relating to decryption failures.
This commit is contained in:
parent
4d97586f82
commit
8cd16792a2
@ -437,7 +437,8 @@ public class ArbitraryDataReader {
|
|||||||
|
|
||||||
} catch (NoSuchAlgorithmException | InvalidAlgorithmParameterException | NoSuchPaddingException
|
} catch (NoSuchAlgorithmException | InvalidAlgorithmParameterException | NoSuchPaddingException
|
||||||
| BadPaddingException | IllegalBlockSizeException | IOException | InvalidKeyException e) {
|
| BadPaddingException | IllegalBlockSizeException | IOException | InvalidKeyException e) {
|
||||||
throw new DataException(String.format("Unable to decrypt file at path %s: %s", this.filePath, e.getMessage()));
|
LOGGER.info(String.format("Exception when decrypting using algorithm %s", algorithm), e);
|
||||||
|
throw new DataException(String.format("Unable to decrypt file at path %s using algorithm %s: %s", this.filePath, algorithm, e.getMessage()));
|
||||||
}
|
}
|
||||||
} else {
|
} else {
|
||||||
// Assume it is unencrypted. This will be the case when we have built a custom path by combining
|
// Assume it is unencrypted. This will be the case when we have built a custom path by combining
|
||||||
|
Loading…
x
Reference in New Issue
Block a user