From adb57bf524126f80f7f353ebe8a0ef645385d45a Mon Sep 17 00:00:00 2001 From: Denis Gukov Date: Mon, 7 Nov 2022 11:20:46 +0500 Subject: [PATCH] chore: error message --- db/AccessKey.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/db/AccessKey.go b/db/AccessKey.go index 3ab9c001..a0c93f03 100644 --- a/db/AccessKey.go +++ b/db/AccessKey.go @@ -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 }