# HG changeset patch # User Marcin Kuzminski # Date 2020-06-03 17:44:53 # Node ID 2cb1cdad3ca214b35c660ae018137b7b8ee19612 # Parent ef6d7bca0174c6630b375ec5544826262a19841f files: report the name of missing commit. diff --git a/rhodecode/apps/repository/views/repo_files.py b/rhodecode/apps/repository/views/repo_files.py --- a/rhodecode/apps/repository/views/repo_files.py +++ b/rhodecode/apps/repository/views/repo_files.py @@ -181,8 +181,8 @@ class RepoFilesView(RepoAppView): raise HTTPFound( h.route_path('repo_summary', repo_name=self.db_repo_name)) - except (CommitDoesNotExistError, LookupError): - msg = _('No such commit exists for this repository') + except (CommitDoesNotExistError, LookupError) as e: + msg = _('No such commit exists for this repository. Commit: {}').format(commit_id) h.flash(msg, category='error') raise HTTPNotFound() except RepositoryError as e: