Actions
Feature #5275
closed"export" and "read_*" should include the SW if reading a file fails
Start date:
10/20/2021
Due date:
% Done:
100%
Spec Reference:
Description
When dumping files fails, it would be good if the comment would not just state "failed to read" but also the SW (hex and string-decoded) why it failed.
Example:
################################################################################ # MF/DF.SYSTEM/EF.CHV1 # ################################################################################ # directory: MF/DF.SYSTEM (3f00/a515) # file: EF.CHV1 (6f01) # structure: transparent select MF select DF.SYSTEM select EF.CHV1 # bad file: MF/DF.SYSTEM/EF.CHV1, Failed to read (offset 0)
The same actually also applies to the normal case, when "read_binary" or "read_binary_decoded":
pySIM-shell (MF/DF.SYSTEM/EF.CHV1)> read_binary EXCEPTION of type 'ValueError' occurred with message: 'Failed to read (offset 0)' To enable full traceback, run the following command: 'set debug true'
Where the SW is not printed and/or decoded in the exception.
Actions