# HG changeset patch # User Mads Kiilerich # Date 2016-11-10 15:10:41 # Node ID c5e10169d12747d25471b664ae958a50618af5ce # Parent ea9342f8d46bb47b4f6570af57cb1b625b4516c8 helpers: more helpful error messages for changeset not found diff --git a/kallithea/lib/base.py b/kallithea/lib/base.py --- a/kallithea/lib/base.py +++ b/kallithea/lib/base.py @@ -513,7 +513,8 @@ class BaseRepoController(BaseController) category='error') raise webob.exc.HTTPNotFound() except ChangesetDoesNotExistError as e: - h.flash(h.literal(_('Changeset not found')), + h.flash(h.literal(_('Changeset for %s %s not found in %s') % + (ref_type, ref_name, repo.repo_name)), category='error') raise webob.exc.HTTPNotFound() except RepositoryError as e: diff --git a/kallithea/lib/helpers.py b/kallithea/lib/helpers.py --- a/kallithea/lib/helpers.py +++ b/kallithea/lib/helpers.py @@ -620,7 +620,7 @@ def action_parser(user_log, feed=False, else: # changeset cannot be found - it might have been stripped or removed lbl = rev[:12] - title_ = _('Changeset not found') + title_ = _('Changeset %s not found') % lbl if parse_cs: return link_to(lbl, url_, title=title_, class_='tooltip') return link_to(lbl, url_, raw_id=rev.raw_id, repo_name=repo_name,