1
0
Fork 0

sync: always show sync result stderr_text on error

_ProcessSyncInterleavedResults currently only shows stderr_text if
verbose. Show it if a sync worker fails, regardless of verbosity.

Bug: 438178765
Change-Id: If24dcb10fb5d6857386782d371e3f9c6844dece9
Reviewed-on: https://gerrit-review.googlesource.com/c/git-repo/+/498061
Reviewed-by: Scott Lee <ddoman@google.com>
Tested-by: Gavin Mak <gavinmak@google.com>
This commit is contained in:
Gavin Mak 2025-08-13 01:10:37 +00:00
parent d9cc0a1526
commit 380bf9546e

View file

@ -2398,7 +2398,8 @@ later is required to fix a server side protocol bug.
pm.update()
project = projects[result.project_index]
if opt.verbose and result.stderr_text:
success = result.fetch_success and result.checkout_success
if result.stderr_text and (opt.verbose or not success):
pm.display_message(result.stderr_text)
if result.fetch_start: