From 305c94a6662ff8d78d17253bfef359a2ff734284 Mon Sep 17 00:00:00 2001 From: frankmorgner Date: Sat, 9 Oct 2010 20:42:16 +0000 Subject: [PATCH] modified error messages git-svn-id: https://vsmartcard.svn.sourceforge.net/svnroot/vsmartcard@311 96b47cad-a561-4643-ad3b-153ac7d7599c --- virtualsmartcard/src/vpicc/VirtualSmartcard.py | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/virtualsmartcard/src/vpicc/VirtualSmartcard.py b/virtualsmartcard/src/vpicc/VirtualSmartcard.py index 68f49af..7d7080c 100644 --- a/virtualsmartcard/src/vpicc/VirtualSmartcard.py +++ b/virtualsmartcard/src/vpicc/VirtualSmartcard.py @@ -377,7 +377,7 @@ class RelayOS(SmartcardOS): # {{{ for removed in removedcards: if removed.reader == self.os.reader: if removed.atr == self.os.atr: - print "Card removed from %s. Terminating." % self.os.reader + print "Card removed from '%s'. Terminating." % self.os.reader sys.exit() # }}} @@ -401,7 +401,7 @@ class RelayOS(SmartcardOS): # {{{ self.cm = CardMonitor() self.cm.addObserver(RelayOS.RelayCardObserver(self)) - print "Connected to card in %s" % self.session.readerName + print "Connected to card in '%s'" % self.reader atexit.register(self.stop) @@ -490,7 +490,8 @@ class VirtualICC(object): # {{{ self.sock = self.connectToPort(host, port) self.sock.settimeout(None) except socket.error, e: - print "Failed to open socket: " + str(e) + ". Is pcscd running? Is vpcd loaded?" + print "Failed to open socket: %s" % str(e) + print "Is pcscd running at %s? Is vpcd loaded? Is a firewall blocking port %u?" % (host, port) sys.exit() self.lenlen = lenlen