From 012a4734bfde52d4ce70c2e84e80a7f25bca132e Mon Sep 17 00:00:00 2001 From: Mariano Cano Date: Fri, 15 May 2020 11:33:04 -0700 Subject: [PATCH] Add better messaging when yubikey is not detected. --- kms/yubikey/yubikey.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/kms/yubikey/yubikey.go b/kms/yubikey/yubikey.go index adde5fe6..28c41f95 100644 --- a/kms/yubikey/yubikey.go +++ b/kms/yubikey/yubikey.go @@ -28,7 +28,7 @@ func New(ctx context.Context, opts apiv1.Options) (*YubiKey, error) { return nil, err } if len(cards) == 0 { - return nil, errors.New("error detecting yubikey") + return nil, errors.New("error detecting yubikey: try removing and reconnecting the device") } yk, err := piv.Open(cards[0])