Actually print out if xcrun metal fails (flutter/engine#39926)

Actually print out if xcrun metal fails
This commit is contained in:
Dan Field 2023-02-27 15:39:06 -08:00 committed by GitHub
parent e2094f6128
commit d2b6e2e0a6

View File

@ -111,10 +111,16 @@ def main():
command += args.source
subprocess.check_output(command, stderr=subprocess.STDOUT)
try:
subprocess.check_output(command, stderr=subprocess.STDOUT, text=True)
except subprocess.CalledProcessError as cpe:
print(cpe.output)
return cpe.returncode
return 0
if __name__ == '__main__':
if sys.platform != 'darwin':
raise Exception('This script only runs on Mac')
main()
sys.exit(main())