[flutter_tool] Where possible, catch only subtypes of Exception (#51440)
This commit is contained in:
@@ -194,7 +194,7 @@ class FlutterTesterDevice extends Device {
|
||||
|
||||
final Uri observatoryUri = await observatoryDiscovery.uri;
|
||||
return LaunchResult.succeeded(observatoryUri: observatoryUri);
|
||||
} catch (error) {
|
||||
} on Exception catch (error) {
|
||||
globals.printError('Failed to launch $package: $error');
|
||||
return LaunchResult.failed();
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user