Additional information in the log output when an InvalidCipherException occurs. (#2334)
This commit is contained in:
@@ -136,7 +136,8 @@ public class EncryptionController {
|
||||
}
|
||||
catch (IllegalArgumentException | IllegalStateException e) {
|
||||
if (logger.isErrorEnabled()) {
|
||||
logger.error("Cannot decrypt key:" + name + ", value:" + data, e);
|
||||
logger.error("Cannot decrypt key:" + name + ", value:" + data +
|
||||
", Please verify if encrypt.key is set correctly", e);
|
||||
}
|
||||
throw new InvalidCipherException();
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user