Additional information in the log output when an InvalidCipherException occurs. (#2334)

This commit is contained in:
G1
2023-10-19 04:36:33 +09:00
committed by GitHub
parent a4807a1f93
commit 5e50f11fc3

View File

@@ -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();
}