mirror of https://github.com/portainer/portainer
fix(db): handle decryption error EE-2466 (#6499)
parent
cf459a2d28
commit
1bb02eea59
|
@ -37,7 +37,7 @@ func (connection *DbConnection) UnmarshalObject(data []byte, object interface{})
|
||||||
if connection.getEncryptionKey() != nil {
|
if connection.getEncryptionKey() != nil {
|
||||||
data, err = decrypt(data, connection.getEncryptionKey())
|
data, err = decrypt(data, connection.getEncryptionKey())
|
||||||
if err != nil {
|
if err != nil {
|
||||||
errors.Wrapf(err, "Failed decrypting object")
|
return errors.Wrap(err, "Failed decrypting object")
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
e := json.Unmarshal(data, object)
|
e := json.Unmarshal(data, object)
|
||||||
|
|
Loading…
Reference in New Issue