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 1964bffa..20822096 100644
--- a/subcmds/upload.py
+++ b/subcmds/upload.py
@@ -283,15 +283,19 @@ Gerrit Code Review: http://code.google.com/p/gerrit/
283 have_errors = True 283 have_errors = True
284 284
285 print >>sys.stderr, '' 285 print >>sys.stderr, ''
286 print >>sys.stderr, '--------------------------------------------' 286 print >>sys.stderr, '----------------------------------------------------------------------'
287 287
288 if have_errors: 288 if have_errors:
289 for branch in todo: 289 for branch in todo:
290 if not branch.uploaded: 290 if not branch.uploaded:
291 print >>sys.stderr, '[FAILED] %-15s %-15s (%s)' % ( 291 if len(str(branch.error)) <= 30:
292 fmt = ' (%s)'
293 else:
294 fmt = '\n (%s)'
295 print >>sys.stderr, ('[FAILED] %-15s %-15s' + fmt) % (
292 branch.project.relpath + '/', \ 296 branch.project.relpath + '/', \
293 branch.name, \ 297 branch.name, \
294 branch.error) 298 str(branch.error))
295 print >>sys.stderr, '' 299 print >>sys.stderr, ''
296 300
297 for branch in todo: 301 for branch in todo: