mercurial/commands.py
changeset 1354 8cf364c65425
parent 1350 3729e2773cca
child 1366 136920d13fc2
--- a/mercurial/commands.py
+++ b/mercurial/commands.py
@@ -2178,7 +2178,10 @@ def dispatch(args):
             if u.debugflag:
                 u.warn("broken pipe\n")
         elif getattr(inst, "strerror", None):
-            u.warn("abort: %s\n" % inst.strerror)
+            if getattr(inst, "filename", None):
+                u.warn("abort: %s - %s\n" % (inst.strerror, inst.filename))
+            else:
+                u.warn("abort: %s\n" % inst.strerror)
         else:
             raise
     except OSError, inst: