summaryrefslogtreecommitdiff
path: root/buildtools/wafsamba
diff options
context:
space:
mode:
authorAndrew Tridgell <tridge@samba.org>2010-04-04 10:23:43 +1000
committerAndrew Tridgell <tridge@samba.org>2010-04-06 20:27:25 +1000
commit3ed6d7e76f9e2936e2d27ceeee8984950ea900a3 (patch)
treeef0996c50d27a0df7a2690b4f8121cdd01ea59c3 /buildtools/wafsamba
parent9e9e878e8f5f0fba51e3a576f17cf07d0857cff6 (diff)
downloadsamba-3ed6d7e76f9e2936e2d27ceeee8984950ea900a3.tar.gz
samba-3ed6d7e76f9e2936e2d27ceeee8984950ea900a3.tar.bz2
samba-3ed6d7e76f9e2936e2d27ceeee8984950ea900a3.zip
build: nicer error msg when git ls-files fails
Diffstat (limited to 'buildtools/wafsamba')
-rw-r--r--buildtools/wafsamba/samba_dist.py6
1 files changed, 5 insertions, 1 deletions
diff --git a/buildtools/wafsamba/samba_dist.py b/buildtools/wafsamba/samba_dist.py
index 87ea8ccbef..eacc7c0534 100644
--- a/buildtools/wafsamba/samba_dist.py
+++ b/buildtools/wafsamba/samba_dist.py
@@ -45,7 +45,11 @@ def dist():
destdir = '.'
absdir = os.path.join(srcdir, dir)
git_cmd = [ env.GIT, 'ls-files', '--full-name', absdir ]
- files = Utils.cmd_output(git_cmd).split()
+ try:
+ files = Utils.cmd_output(git_cmd).split()
+ except:
+ print('git command failed: %s' % ' '.join(git_cmd))
+ sys.exit(1)
for f in files:
abspath = os.path.join(srcdir, f)
if dir != '.':