print error message when p4 print fails (eg. due to permission problems)

This commit is contained in:
Han-Wen Nienhuys
2007-05-23 18:49:35 -03:00
parent eb4a85cc97
commit 8e26f9c2bb

5
git-p4
View File

@@ -702,6 +702,11 @@ class P4Sync(Command):
text += filedata[j]['data']
j += 1
if not stat.has_key('depotFile'):
sys.stderr.write("p4 print fails with: %s\n" % repr(stat))
continue
contents[stat['depotFile']] = text
for f in files: