diff mercurial/httprepo.py @ 3072:bc3fe3b5b785

Never apply string formatting to generated errors with util.Abort. Otherwise error messages containing % chars yield errors or worse. Fixed (hopefully) all users of util.Abort.
author Thomas Arendsen Hein <thomas@intevation.de>
date Fri, 08 Sep 2006 09:36:18 +0200
parents 345bac2bc4ec
children cff3c58a5766
line wrap: on
line diff
--- a/mercurial/httprepo.py	Fri Sep 08 02:16:16 2006 +0200
+++ b/mercurial/httprepo.py	Fri Sep 08 09:36:18 2006 +0200
@@ -325,7 +325,7 @@
                     rfp.close()
             except socket.error, err:
                 if err[0] in (errno.ECONNRESET, errno.EPIPE):
-                    raise util.Abort(_('push failed: %s'), err[1])
+                    raise util.Abort(_('push failed: %s') % err[1])
                 raise util.Abort(err[1])
         finally:
             fp.close()