summaryrefslogtreecommitdiffstats
path: root/subcmds/upload.py
diff options
context:
space:
mode:
Diffstat (limited to 'subcmds/upload.py')
-rw-r--r--subcmds/upload.py10
1 files changed, 7 insertions, 3 deletions
diff --git a/subcmds/upload.py b/subcmds/upload.py
index 8e3d2723..2ab6a484 100644
--- a/subcmds/upload.py
+++ b/subcmds/upload.py
@@ -273,15 +273,19 @@ Gerrit Code Review: http://code.google.com/p/gerrit/
273 have_errors = True 273 have_errors = True
274 274
275 print >>sys.stderr, '' 275 print >>sys.stderr, ''
276 print >>sys.stderr, '--------------------------------------------' 276 print >>sys.stderr, '----------------------------------------------------------------------'
277 277
278 if have_errors: 278 if have_errors:
279 for branch in todo: 279 for branch in todo:
280 if not branch.uploaded: 280 if not branch.uploaded:
281 print >>sys.stderr, '[FAILED] %-15s %-15s (%s)' % ( 281 if len(str(branch.error)) <= 30:
282 fmt = ' (%s)'
283 else:
284 fmt = '\n (%s)'
285 print >>sys.stderr, ('[FAILED] %-15s %-15s' + fmt) % (
282 branch.project.relpath + '/', \ 286 branch.project.relpath + '/', \
283 branch.name, \ 287 branch.name, \
284 branch.error) 288 str(branch.error))
285 print >>sys.stderr, '' 289 print >>sys.stderr, ''
286 290
287 for branch in todo: 291 for branch in todo: