Skip to content
This repository has been archived by the owner on Dec 1, 2022. It is now read-only.

Commit

Permalink
Merge pull request #1 from ZondaX/master
Browse files Browse the repository at this point in the history
Exposing raw answer in case of errors
  • Loading branch information
jleni committed Mar 25, 2019
2 parents 69c15f1 + 9445568 commit 1e64b51
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 1e64b51

Please sign in to comment.