Mercurial > kallithea
changeset 4774:dd85884243a7
diff: better exception if failing to parse diff header
author | Mads Kiilerich <madski@unity3d.com> |
---|---|
date | Wed, 21 Jan 2015 17:35:11 +0100 |
parents | 8996b4f57dad |
children | 787f30a1a996 |
files | kallithea/lib/diffs.py |
diffstat | 1 files changed, 1 insertions(+), 1 deletions(-) [+] |
line wrap: on
line diff
--- a/kallithea/lib/diffs.py Wed Jan 21 17:35:11 2015 +0100 +++ b/kallithea/lib/diffs.py Wed Jan 21 17:35:11 2015 +0100 @@ -360,7 +360,7 @@ elif self.vcs == 'hg': match = self._hg_header_re.match(diff_chunk) if match is None: - raise Exception('VCS type %s is not supported' % self.vcs) + raise Exception('diff not recognized as valid %s diff' % self.vcs) groups = match.groupdict() rest = diff_chunk[match.end():] if rest and not rest.startswith('@') and not rest.startswith('literal '):