diff --git a/bricks/dart_frog_dev_server/hooks/analysis_options.yaml b/bricks/dart_frog_dev_server/hooks/analysis_options.yaml index bb7209144..c2f4cbbca 100644 --- a/bricks/dart_frog_dev_server/hooks/analysis_options.yaml +++ b/bricks/dart_frog_dev_server/hooks/analysis_options.yaml @@ -1 +1 @@ -include: package:very_good_analysis/analysis_options.6.0.0.yaml +include: package:very_good_analysis/analysis_options.7.0.0.yaml diff --git a/bricks/dart_frog_dev_server/hooks/pre_gen.dart b/bricks/dart_frog_dev_server/hooks/pre_gen.dart index 67b82d947..4b637d9b4 100644 --- a/bricks/dart_frog_dev_server/hooks/pre_gen.dart +++ b/bricks/dart_frog_dev_server/hooks/pre_gen.dart @@ -23,7 +23,7 @@ Future preGen( final RouteConfiguration configuration; try { configuration = buildConfiguration(io.Directory.current); - } catch (error) { + } on Exception catch (error) { context.logger.err('$error'); return exit(1); } diff --git a/bricks/dart_frog_dev_server/hooks/pubspec.yaml b/bricks/dart_frog_dev_server/hooks/pubspec.yaml index 3eb2fbeea..d47f4f986 100644 --- a/bricks/dart_frog_dev_server/hooks/pubspec.yaml +++ b/bricks/dart_frog_dev_server/hooks/pubspec.yaml @@ -13,4 +13,4 @@ dev_dependencies: mocktail: ^1.0.0 path: ^1.8.2 test: ^1.25.0 - very_good_analysis: ^6.0.0 + very_good_analysis: ^7.0.0