From 8f44eed8b8dbb4aa9928370ba873e3457e0d020c Mon Sep 17 00:00:00 2001 From: iosmanthus Date: Wed, 13 Dec 2023 22:02:04 +0800 Subject: [PATCH] fix error message Signed-off-by: iosmanthus --- pkgs/sops-install-secrets/main.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pkgs/sops-install-secrets/main.go b/pkgs/sops-install-secrets/main.go index d47b93d..c324337 100644 --- a/pkgs/sops-install-secrets/main.go +++ b/pkgs/sops-install-secrets/main.go @@ -262,7 +262,7 @@ func recurseSecretKey(format FormatType, keys map[string]interface{}, wantedKey strVal, err := marshaller(val) if err != nil { - return "", fmt.Errorf("Cannot the value of key '%s': %w", keyUntilNow, err) + return "", fmt.Errorf("Cannot marshal the value of key '%s': %w", keyUntilNow, err) } return string(strVal), nil