Skip to content

Commit c8578e2

Browse files
committed
Show card ATR in the error
1 parent f51658a commit c8578e2

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

card/card.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -84,7 +84,7 @@ func DetectCardDocument(sc Card) (CardDocument, error) {
8484
}
8585
}
8686

87-
return nil, errors.New("unexpected card type")
87+
return nil, fmt.Errorf("unexpected card type (ATR: %s)", atr)
8888
}
8989

9090
// Reads binary data from the card starting from the specified offset and with the specified length.

0 commit comments

Comments
 (0)