return ErrBadResponse with unexpected response

This commit is contained in:
Andrea Franz 2019-04-26 16:35:21 +02:00
parent 0be16bb97d
commit 3a8208318e
No known key found for this signature in database
GPG Key ID: 4F0D2F2D9DE7F29D

View File

@ -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