From b554838ce83d1af6b2f27ae07d5f5732d03c8fdf Mon Sep 17 00:00:00 2001 From: Mikhail Naganov Date: Thu, 9 May 2019 12:59:49 -0700 Subject: [PATCH] Print project name when work tree initialization fails When syncing a lot of projects in parallel, it is not otherwise clear which one of them has failed to init work tree. Change-Id: I8edfb4955023389a499e99cfa511bdc0d2850ba2 --- project.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/project.py b/project.py index 65bc3a04..83d2f6af 100755 --- a/project.py +++ b/project.py @@ -2589,7 +2589,7 @@ class Project(object): cmd.append('-v') cmd.append(HEAD) if GitCommand(self, cmd).Wait() != 0: - raise GitError("cannot initialize work tree") + raise GitError("cannot initialize work tree for " + self.name) if submodules: self._SyncSubmodules(quiet=True)