mirror of
https://github.com/semaphoreui/semaphore.git
synced 2024-11-23 20:35:24 +01:00
chore: error message
This commit is contained in:
parent
1b0d8954c6
commit
adb57bf524
@ -284,7 +284,7 @@ func (key *AccessKey) DeserializeSecret() error {
|
|||||||
if encryptionString == "" {
|
if encryptionString == "" {
|
||||||
err = key.unmarshalAppropriateField(ciphertext)
|
err = key.unmarshalAppropriateField(ciphertext)
|
||||||
if _, ok := err.(*json.SyntaxError); ok {
|
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
|
return err
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user