Andreas Jellinghaus wrote:
Hi Nils,

is there some easy way to implement an nicer error message?

hmm, is

card.c:571:sc_list_files: called
card.c:573:sc_list_files: returning with: Not supported
sc_list_files() failed: Not supported

not quite precise ?


currently the driver falls back on the generic iso options.

well actually it should only fall back to the iso driver
if the driver supports this operation and the iso driver
could be used. If a card doesn't support a operation it
should set the function pointer to NULL (ops, I need to
fix this in card-starcos.c)

maybe instead
we should have a dummy function that returns an error, so we can
print some nice / easy to understand error message instead of a
backtrace with various functions?

yep, the current error reporting stuff is not optimal. I would
prefer something similar to the openssl error handling stack
(i.e. every function can put additional information on a thread
specific error stack and the application can decide what to do
with it).

Cheers,
Nils
_______________________________________________
opensc-devel mailing list
opensc-devel@lists.opensc-project.org
http://www.opensc-project.org/mailman/listinfo/opensc-devel

Reply via email to