##// END OF EJS Templates
Made the abort message for IOError nicer when the filename is known.
Eric Hopper -
r1354:8cf364c6 default
parent child Browse files
Show More
@@ -2178,7 +2178,10 b' def dispatch(args):'
2178 if u.debugflag:
2178 if u.debugflag:
2179 u.warn("broken pipe\n")
2179 u.warn("broken pipe\n")
2180 elif getattr(inst, "strerror", None):
2180 elif getattr(inst, "strerror", None):
2181 u.warn("abort: %s\n" % inst.strerror)
2181 if getattr(inst, "filename", None):
2182 u.warn("abort: %s - %s\n" % (inst.strerror, inst.filename))
2183 else:
2184 u.warn("abort: %s\n" % inst.strerror)
2182 else:
2185 else:
2183 raise
2186 raise
2184 except OSError, inst:
2187 except OSError, inst:
General Comments 0
You need to be logged in to leave comments. Login now