Commit 47ca683e authored by Guillaume Seguin's avatar Guillaume Seguin

Improve socket error reporting

parent cf8abd83
...@@ -152,7 +152,8 @@ class printcore(): ...@@ -152,7 +152,8 @@ class printcore():
print _("Could not connect to %s:%s:") % (hostname, port) print _("Could not connect to %s:%s:") % (hostname, port)
self.printer = None self.printer = None
self.printer_tcp = None self.printer_tcp = None
print _("Socket error %s: %s") % (e.errno, e.strerror) print _("Socket error %s:") % e.errno,
print e.strerror
return return
else: else:
disable_hup(self.port) disable_hup(self.port)
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment