Mercurial > hg-stable
changeset 3743:3a099154b110
Make revlog error slightly less scary
author | Matt Mackall <mpm@selenic.com> |
---|---|
date | Fri, 01 Dec 2006 02:24:56 -0600 |
parents | 86c1d1d35593 |
children | d626fc9e3985 |
files | mercurial/revlog.py |
diffstat | 1 files changed, 3 insertions(+), 3 deletions(-) [+] |
line wrap: on
line diff
--- a/mercurial/revlog.py Fri Dec 01 01:42:52 2006 -0600 +++ b/mercurial/revlog.py Fri Dec 01 02:24:56 2006 -0600 @@ -355,14 +355,14 @@ fmt = v & 0xFFFF if fmt == REVLOGV0: if flags: - raise RevlogError(_("index %s invalid flags %x for format v0") + raise RevlogError(_("index %s unknown flags %x for format v0") % (self.indexfile, flags)) elif fmt == REVLOGNG: if flags & ~REVLOGNGINLINEDATA: - raise RevlogError(_("index %s invalid flags %x for revlogng") + raise RevlogError(_("index %s unknown flags %x for revlogng") % (self.indexfile, flags)) else: - raise RevlogError(_("index %s invalid format %d") + raise RevlogError(_("index %s unknown format %d") % (self.indexfile, fmt)) self.version = v if v == REVLOGV0: