Skip to content

Commit

Permalink
returning raw answer
Browse files Browse the repository at this point in the history
  • Loading branch information
jleni committed Mar 21, 2019
1 parent 69c15f1 commit fb0724f
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion ledger.go
Original file line number Diff line number Diff line change
Expand Up @@ -214,7 +214,7 @@ func (ledger *Ledger) Exchange(command []byte) ([]byte, error) {
fmt.Printf("Response: [%3d]<= %x [%#x]\n", len(response[:swOffset]), response[:swOffset], sw)
}
if sw != 0x9000 {
return nil, errors.New(ErrorMessage(sw))
return response[:swOffset], errors.New(ErrorMessage(sw))
}

return response[:swOffset], nil
Expand Down

0 comments on commit fb0724f

Please sign in to comment.