commit | 9de7787f258870e60a7c4127883e8f7f1af5822c | [log] [tgz] |
---|---|---|
author | Zachary Anderson <zanderso@users.noreply.github.com> | Thu Feb 27 22:46:23 2020 -0800 |
committer | GitHub <noreply@github.com> | Thu Feb 27 22:46:23 2020 -0800 |
tree | b716dd7b366de8a4f2521c3f9d378a46c052dc85 | |
parent | ccaf65b770ee72d5b7eff67ac4bd8e0d3ffcb0d6 [diff] [blame] |
Reland: [flutter_tool] Where possible, catch only subtypes of Exception (#51567)
diff --git a/packages/flutter_tools/test/commands.shard/hermetic/version_test.dart b/packages/flutter_tools/test/commands.shard/hermetic/version_test.dart index 482c379..972b433 100644 --- a/packages/flutter_tools/test/commands.shard/hermetic/version_test.dart +++ b/packages/flutter_tools/test/commands.shard/hermetic/version_test.dart
@@ -163,7 +163,7 @@ try { await command.getTags(); fail('ToolExit expected'); - } catch(e) { + } on Exception catch (e) { expect(e, isA<ToolExit>()); } }, overrides: <Type, Generator>{