[meld/build-updates: 15/26] Fix showing errors from stdout




commit 0631214c9e5fcfeea4b46cf2cef6f2227385be4c
Author: Kai Willadsen <kai willadsen gmail com>
Date:   Sun Sep 11 09:42:19 2022 +1000

    Fix showing errors from stdout

 maint | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
---
diff --git a/maint b/maint
old mode 100755
new mode 100644
index 082cedc1..7f0743c6
--- a/maint
+++ b/maint
@@ -225,7 +225,7 @@ def call_with_output(
     pipe = subprocess.PIPE
     with subprocess.Popen(cmd, stdin=pipe, stdout=pipe, stderr=pipe) as proc:
         stdout, stderr = proc.communicate(stdin_text, timeout=timeout)
-    if stdout and echo_stdout:
+    if stdout and (echo_stdout or proc.returncode):
         click.echo('\n' + stdout.decode('utf-8'))
     if stderr or proc.returncode:
         click.secho('\n' + stderr.decode('utf-8'), fg='red')


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]