Commit 35061445 authored by Josip Sokcevic's avatar Josip Sokcevic Committed by LUCI CQ

Improve error message when a commit is not found

Improve error message when gclient sync errors due to a bad commit.

R=aravindvasudev@google.com

Fixed: 1078864
Change-Id: I574c7f7d2b5419cf96a4b3a3e3c57e16baeeecf0
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/tools/depot_tools/+/3362175
Auto-Submit: Josip Sokcevic <sokcevic@google.com>
Reviewed-by: 's avatarAravind Vasudevan <aravindvasudev@google.com>
Commit-Queue: Josip Sokcevic <sokcevic@google.com>
parent c3e25c82
......@@ -348,6 +348,7 @@ class Mirror(object):
self.RunGit(['cat-file', '-e', needle])
return True
except subprocess.CalledProcessError:
self.print('Commit with hash "%s" not found' % revision, file=sys.stderr)
return False
def exists(self):
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment