mirror of
https://github.com/outbackdingo/certificates.git
synced 2026-01-27 10:18:34 +00:00
Add better messaging when yubikey is not detected.
This commit is contained in:
@@ -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])
|
||||
|
||||
Reference in New Issue
Block a user