From fe14747d7bf1e6c406e7dc86310a4af3dc03b746 Mon Sep 17 00:00:00 2001 From: Marcin Kuzminski Date: Wed, 28 Feb 2018 12:29:08 +0100 Subject: [PATCH] events: improve the error message on missing event commits --- rhodecode/events/repo.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/rhodecode/events/repo.py b/rhodecode/events/repo.py index 0751d23b..096be277 100644 --- a/rhodecode/events/repo.py +++ b/rhodecode/events/repo.py @@ -132,7 +132,8 @@ def _commits_as_dict(event, commit_ids, repos): missing_commits = set(commit_ids) - set(c['raw_id'] for c in commits) if missing_commits: - log.error('missing commits: %s' % ', '.join(missing_commits)) + log.error('Inconsistent repository state. ' + 'Missing commits: %s' % ', '.join(missing_commits)) return commits