mirror of
https://github.com/flutter/flutter.git
synced 2025-06-03 00:51:18 +00:00
Fix casing of error when Dart compiler is interrupted (#167520)
You see this error if you do a well timed `Ctrl+C` during a `flutter run`
This commit is contained in:
parent
69c5526b23
commit
127faefdf2
@ -891,7 +891,7 @@ class DefaultResidentCompiler implements ResidentCompiler {
|
||||
// process has died unexpectedly.
|
||||
if (_stdoutHandler.compilerOutput?.isCompleted == false) {
|
||||
_stdoutHandler.compilerOutput?.complete();
|
||||
throwToolExit('the Dart compiler exited unexpectedly.');
|
||||
throwToolExit('The Dart compiler exited unexpectedly.');
|
||||
}
|
||||
},
|
||||
);
|
||||
@ -904,7 +904,7 @@ class DefaultResidentCompiler implements ResidentCompiler {
|
||||
unawaited(
|
||||
_server?.exitCode.then((int code) {
|
||||
if (code != 0) {
|
||||
throwToolExit('the Dart compiler exited unexpectedly.');
|
||||
throwToolExit('The Dart compiler exited unexpectedly.');
|
||||
}
|
||||
}),
|
||||
);
|
||||
|
@ -612,7 +612,7 @@ resolution: workspace
|
||||
onError: (Object error) async {
|
||||
expect(error, isA<ToolExit>());
|
||||
// We expect this message because we are using a fake ProcessManager.
|
||||
expect((error as ToolExit).message, contains('the Dart compiler exited unexpectedly.'));
|
||||
expect((error as ToolExit).message, contains('The Dart compiler exited unexpectedly.'));
|
||||
caughtToolExit = true;
|
||||
|
||||
final File isolateSpawningTesterPackageConfigFile = fs
|
||||
@ -694,7 +694,7 @@ resolution: workspace
|
||||
onError: (Object error) async {
|
||||
expect(error, isA<ToolExit>());
|
||||
// We expect this message because we are using a fake ProcessManager.
|
||||
expect((error as ToolExit).message, contains('the Dart compiler exited unexpectedly.'));
|
||||
expect((error as ToolExit).message, contains('The Dart compiler exited unexpectedly.'));
|
||||
caughtToolExit = true;
|
||||
|
||||
final File childTestIsolateSpawnerSourceFile = fs
|
||||
@ -761,7 +761,7 @@ const List<String> packageTestArgs = <String>[
|
||||
onError: (Object error) async {
|
||||
expect(error, isA<ToolExit>());
|
||||
// We expect this message because we are using a fake ProcessManager.
|
||||
expect((error as ToolExit).message, contains('the Dart compiler exited unexpectedly.'));
|
||||
expect((error as ToolExit).message, contains('The Dart compiler exited unexpectedly.'));
|
||||
caughtToolExit = true;
|
||||
|
||||
final File childTestIsolateSpawnerSourceFile = fs
|
||||
|
@ -191,7 +191,7 @@ void main() {
|
||||
projectRootPath: '',
|
||||
),
|
||||
),
|
||||
throwsToolExit(message: 'the Dart compiler exited unexpectedly.'),
|
||||
throwsToolExit(message: 'The Dart compiler exited unexpectedly.'),
|
||||
);
|
||||
},
|
||||
);
|
||||
|
Loading…
Reference in New Issue
Block a user