Skip to content

Commit

Permalink
Improve error message when webkitbot fails to find identifier
Browse files Browse the repository at this point in the history
https://bugs.webkit.org/show_bug.cgi?id=259477

Reviewed by Ryan Haddad.

* Tools/Scripts/libraries/webkitscmpy/webkitscmpy/local/git.py:

Canonical link: https://commits.webkit.org/266291@main
  • Loading branch information
aj062 committed Jul 25, 2023
1 parent ffa4c81 commit 9ed5621
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -702,7 +702,7 @@ def commit(self, hash=None, revision=None, identifier=None, branch=None, tag=Non
)

if identifier > base_count:
raise self.Exception('Identifier {} cannot be found on the specified branch in the current checkout'.format(identifier))
raise self.Exception('Identifier {} cannot be found on the specified branch in the current checkout. Latest identifier on this branch is {}'.format(identifier, base_count))
log = run(
[self.executable(), 'log', '{}~{}'.format(branch or 'HEAD', base_count - identifier)] + log_format + ['--'],
cwd=self.root_path,
Expand Down

0 comments on commit 9ed5621

Please sign in to comment.