Просмотр исходного кода

Add better messaging when yubikey is not detected.

Mariano Cano 6 лет назад
Родитель
Сommit
012a4734bf
1 измененных файлов с 1 добавлено и 1 удалено
  1. 1 1
      kms/yubikey/yubikey.go

+ 1 - 1
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])