mercurial/dispatch.py
changeset 48184 8fae2cc6ee86
parent 47023 a2bf93ab3014
child 48185 2f2107c01dee
--- a/mercurial/dispatch.py	Mon Oct 11 17:31:27 2021 +0200
+++ b/mercurial/dispatch.py	Fri Oct 08 13:34:33 2021 -0700
@@ -253,7 +253,7 @@
         status = -1
 
     ret = _flushstdio(req.ui, err)
-    if ret:
+    if ret and not status:
         status = ret
     return status