mirror of
https://github.com/semaphoreui/semaphore.git
synced 2024-11-23 12:30:41 +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 == "" {
|
||||
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
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user