forked from TrueCloudLab/certificates
Add better messaging when yubikey is not detected.
This commit is contained in:
parent
7d61c0003c
commit
012a4734bf
1 changed files with 1 additions and 1 deletions
|
@ -28,7 +28,7 @@ func New(ctx context.Context, opts apiv1.Options) (*YubiKey, error) {
|
||||||
return nil, err
|
return nil, err
|
||||||
}
|
}
|
||||||
if len(cards) == 0 {
|
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])
|
yk, err := piv.Open(cards[0])
|
||||||
|
|
Loading…
Reference in a new issue