Improve winit/mach segfault output

This commit is contained in:
Delan Azabani 2023-02-28 21:54:48 +08:00
parent 6fe87c985b
commit 07c1286334
2 changed files with 34 additions and 9 deletions

View file

@ -169,7 +169,10 @@ class PostBuildCommands(CommandBase):
try:
check_call(args, env=env)
except subprocess.CalledProcessError as e:
print("Servo exited with return value %d" % e.returncode)
if e.returncode < 0:
print(f"Servo was terminated by signal {-e.returncode}")
else:
print(f"Servo exited with non-zero status {e.returncode}")
return e.returncode
except OSError as e:
if e.errno == 2: