# HG changeset patch # User drewp@bigasterisk.com # Date 1626420763 25200 # Node ID 19a699305c29a646411bb04c7c1f74d668defea3 # Parent 460a2cf8b22b33e8a7be07471a228f687bb62313 better failure erroring diff -r 460a2cf8b22b -r 19a699305c29 sync.py --- a/sync.py Fri Jul 16 00:30:53 2021 -0700 +++ b/sync.py Fri Jul 16 00:32:43 2021 -0700 @@ -71,7 +71,7 @@ capture_output=True, cwd=self.projRoot, env={'SSH_AUTH_SOCK': self.config['SSH_AUTH_SOCK']}) - if not push.stdout.endswith(b'no changes found\n'): + if push.returncode != 0 and not push.stdout.endswith(b'no changes found\n'): raise ValueError(f'hg push failed with {push.stdout!r}') def getSshAuthSock():