From d11bf32950bcf01773a38b3afbf6bb35ece051bc Mon Sep 17 00:00:00 2001 From: Zac Medico Date: Fri, 21 Feb 2020 16:04:37 -0800 Subject: action_sync: display error message with --quiet Signed-off-by: Zac Medico --- lib/_emerge/actions.py | 3 +++ 1 file changed, 3 insertions(+) (limited to 'lib/_emerge/actions.py') diff --git a/lib/_emerge/actions.py b/lib/_emerge/actions.py index 4bf9ce425..7a39d5ec7 100644 --- a/lib/_emerge/actions.py +++ b/lib/_emerge/actions.py @@ -2082,6 +2082,9 @@ def action_sync(emerge_config, trees=DeprecationWarning, success, msgs = syncer.auto_sync(options=options) if return_messages: print_results(msgs) + elif msgs and not success: + writemsg_level("".join("%s\n" % (line,) for line in msgs), + level=logging.ERROR, noiselevel=-1) return os.EX_OK if success else 1 -- cgit v1.2.3-65-gdbad