mirror of
https://github.com/kovidgoyal/kitty.git
synced 2026-05-13 08:26:56 +00:00
Fix incorrect exception when tic fails
This commit is contained in:
parent
e04e5a157f
commit
1aaaa3f1e9
1 changed files with 2 additions and 1 deletions
|
|
@ -162,9 +162,10 @@ def compile_terminfo(base):
|
|||
[tic, '-x', '-o', os.path.join(base, tname), os.path.join(base, '.terminfo', 'kitty.terminfo')],
|
||||
stdout=subprocess.PIPE, stderr=subprocess.STDOUT
|
||||
)
|
||||
output = p.stdout.read()
|
||||
rc = p.wait()
|
||||
if rc != 0:
|
||||
getattr(sys.stderr, 'buffer', sys.stderr).write(p.stdout)
|
||||
getattr(sys.stderr, 'buffer', sys.stderr).write(output)
|
||||
raise SystemExit('Failed to compile the terminfo database')
|
||||
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue