chore: error message

This commit is contained in:
Denis Gukov 2022-11-07 11:20:46 +05:00
parent 1b0d8954c6
commit adb57bf524

View File

@ -284,7 +284,7 @@ func (key *AccessKey) DeserializeSecret() error {
if encryptionString == "" {
err = key.unmarshalAppropriateField(ciphertext)
if _, ok := err.(*json.SyntaxError); ok {
err = fmt.Errorf("cannot decrypt access key, perhaps encryption key was changed")
err = fmt.Errorf("secret must be valid json")
}
return err
}