mirror of
https://github.com/status-im/keycard-cli.git
synced 2025-03-01 04:10:33 +00:00
return ErrBadResponse with unexpected response
This commit is contained in:
parent
0be16bb97d
commit
3a8208318e
2
shell.go
2
shell.go
@ -212,7 +212,7 @@ func (s *Shell) commandGPSendAPDU(args ...string) error {
|
|||||||
|
|
||||||
if resp.Sw != apdu.SwOK {
|
if resp.Sw != apdu.SwOK {
|
||||||
logger.Error("unexpected response", "sw", fmt.Sprintf("%x", resp.Sw))
|
logger.Error("unexpected response", "sw", fmt.Sprintf("%x", resp.Sw))
|
||||||
return err
|
return apdu.NewErrBadResponse(resp.Sw, "unexpected response")
|
||||||
}
|
}
|
||||||
|
|
||||||
return nil
|
return nil
|
||||||
|
Loading…
x
Reference in New Issue
Block a user