forked from firka/flutter
Actually print out if xcrun metal fails (flutter/engine#39926)
Actually print out if xcrun metal fails
This commit is contained in:
@@ -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())
|
||||
|
||||
Reference in New Issue
Block a user