Changeset 3077 for pykota/trunk/bin

Show
Ignore:
Timestamp:
11/28/06 22:35:50 (18 years ago)
Author:
jerome
Message:

Improved error handling.

Files:
1 modified

Legend:

Unmodified
Added
Removed
  • pykota/trunk/bin/pknotify

    r3076 r3077  
    297297            else :     
    298298                if errnum == errno.ECONNREFUSED : 
    299                     self.printInfo(_("Are you sure that PyKotIcon is running and accepting incoming connections on %s:%s ?") % (self.destination, self.port), "error") 
     299                    raise PyKotaToolError, "%s : %s" % (str(msg), (_("Are you sure that PyKotIcon is running and accepting incoming connections on %s:%s ?") % (self.destination, self.port))) 
    300300            raise PyKotaToolError, "%s : %s" % (_("Connection error"), str(msg)) 
    301301        except TimeoutError, msg :