From 8e98706ad2409c9d29c207ffa98915681cad9357 Mon Sep 17 00:00:00 2001 From: Junjie Gao Date: Wed, 10 Apr 2024 14:05:33 +0800 Subject: [PATCH] fix: update error message Signed-off-by: Junjie Gao --- internal/envelope/envelope.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/internal/envelope/envelope.go b/internal/envelope/envelope.go index 3c95b7c45..4f49ca0f8 100644 --- a/internal/envelope/envelope.go +++ b/internal/envelope/envelope.go @@ -46,7 +46,7 @@ func GetEnvelopeMediaType(sigFormat string) (string, error) { case COSE: return cose.MediaTypeEnvelope, nil } - return "", fmt.Errorf("signature format %q not supported\nPlease use the supported signature envelope format \"jws\" or \"cose\"", sigFormat) + return "", fmt.Errorf("signature format %q not supported\nSupported signature envelope formats are \"jws\" and \"cose\"", sigFormat) } // ValidatePayloadContentType validates signature payload's content type.