Revert "[flutter_tool] Where possible, catch only subtypes of Exception (#51440)" (#51539)

This reverts commit f1cd47ef5c.
This commit is contained in:
Zachary Anderson
2020-02-26 23:42:19 -08:00
committed by GitHub
parent f1cd47ef5c
commit 483f49962c
84 changed files with 204 additions and 308 deletions

View File

@@ -73,8 +73,7 @@ class VMPlatform extends PlatformPlugin {
Isolate isolate;
try {
isolate = await _spawnIsolate(codePath, receivePort.sendPort);
// This catch rethrows, so doesn't need to catch only Exception.
} catch (error) { // ignore: avoid_catches_without_on_clauses
} catch (error) {
receivePort.close();
rethrow;
}