[go: nahoru, domu]

Skip to content

Commit

Permalink
Adjust error message
Browse files Browse the repository at this point in the history
  • Loading branch information
jmagman committed Nov 29, 2022
1 parent dc1376a commit 3537586
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion packages/flutter_tools/lib/src/base/error_handling_io.dart
Original file line number Diff line number Diff line change
Expand Up @@ -772,7 +772,8 @@ void _handleMacOSException(Exception e, String? message, int errorCode, String?
if (errorCode == ebadarch) {
final StringBuffer errorBuffer = StringBuffer();
errorBuffer.writeln(message);
errorBuffer.writeln('Flutter requires the Rosetta translation environment on ARM Macs. Try running:');
errorBuffer.writeln('This binary was built with the incorrect architecture to run on this machine.');
errorBuffer.writeln('Flutter requires the Rosetta translation environment. If you are on an ARM Mac, try running:');
errorBuffer.writeln(' sudo softwareupdate --install-rosetta --agree-to-license');
_throwFileSystemException(errorBuffer.toString());
}
Expand Down

0 comments on commit 3537586

Please sign in to comment.