abort if context fails to start or terminal missing

This commit is contained in:
Michele Balistreri 2022-08-12 08:58:40 +02:00
parent cd9383e103
commit 145e332f9f

View File

@ -183,7 +183,7 @@ func (f *KeycardFlow) connect() (*keycardContext, error) {
kc, err := startKeycardContext()
if err != nil {
return nil, restartErr()
return nil, errors.New(ErrorConnection)
}
f.pause(InsertCard, ErrorConnection, FlowParams{})