# HG changeset patch # User Mads Kiilerich # Date 1478790641 -3600 # Node ID 51415ff90b082d44eb8354005ecb69f5420c6cf9 # Parent 19f15cde2cdb0336c2753ac46aad500336fc34b4 helpers: more helpful error messages for changeset not found diff -r 19f15cde2cdb -r 51415ff90b08 kallithea/lib/base.py --- a/kallithea/lib/base.py Thu Nov 10 16:10:41 2016 +0100 +++ b/kallithea/lib/base.py Thu Nov 10 16:10:41 2016 +0100 @@ -502,7 +502,8 @@ 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 -r 19f15cde2cdb -r 51415ff90b08 kallithea/lib/helpers.py --- a/kallithea/lib/helpers.py Thu Nov 10 16:10:41 2016 +0100 +++ b/kallithea/lib/helpers.py Thu Nov 10 16:10:41 2016 +0100 @@ -566,7 +566,7 @@ 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,