Skip to content

Commit

Permalink
[ttx_diff] On error use stdout if stderr is empty
Browse files Browse the repository at this point in the history
This happens sometimes in gftools, specifically if an error occurs in
the ninja subprocess.
  • Loading branch information
cmyr committed Oct 27, 2024
1 parent dded8ec commit f181c18
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion resources/scripts/ttx_diff.py
Original file line number Diff line number Diff line change
Expand Up @@ -177,7 +177,7 @@ def __init__(self, cmd: Sequence, stderr: str):
def build(cmd: Sequence, build_dir: Union[Path, None], **kwargs):
output = log_and_run(cmd, build_dir, **kwargs)
if output.returncode != 0:
raise BuildFail(cmd, output.stderr)
raise BuildFail(cmd, output.stderr or output.stdout)


def build_fontc(source: Path, fontc_bin: Path, build_dir: Path):
Expand Down

0 comments on commit f181c18

Please sign in to comment.