mirror of
https://github.com/flutter/flutter.git
synced 2026-02-20 02:29:02 +08:00
Actually print out if xcrun metal fails (flutter/engine#39926)
Actually print out if xcrun metal fails
This commit is contained in:
parent
e2094f6128
commit
d2b6e2e0a6
@ -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())
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user