# HG changeset patch # User Mads Kiilerich # Date 2015-01-21 17:35:11 # Node ID dd85884243a7283334fea2b38200c158022430a0 # Parent 8996b4f57dad1c3aeae9df12452f905a6262186d diff: better exception if failing to parse diff header diff --git a/kallithea/lib/diffs.py b/kallithea/lib/diffs.py --- a/kallithea/lib/diffs.py +++ b/kallithea/lib/diffs.py @@ -360,7 +360,7 @@ class DiffProcessor(object): 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 '):