Print a proper sentence when reporting script failure

pull/12806/merge
Akihiko Odaki 1 year ago committed by Nirbheek Chauhan
parent 10e269271d
commit ed1a1d567a
  1. 4
      mesonbuild/minstall.py

@ -700,11 +700,11 @@ class Installer:
try:
rc = self.run_exe(i, localenv)
except OSError:
print(f'FAILED: install script \'{name}\' could not be run, stopped')
print(f'FAILED: install script \'{name}\' could not be run.')
# POSIX shells return 127 when a command could not be found
sys.exit(127)
if rc != 0:
print(f'FAILED: install script \'{name}\' exit code {rc}, stopped')
print(f'FAILED: install script \'{name}\' failed with exit code {rc}.')
sys.exit(rc)
def install_targets(self, d: InstallData, dm: DirMaker, destdir: str, fullprefix: str) -> None:

Loading…
Cancel
Save