Skip to content

Commit 191c970

Browse files
committed
analyzer fixes
1 parent e34d3e2 commit 191c970

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

bricks/dart_frog_dev_server/hooks/pre_gen.dart

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@ Future<void> preGen(
2323
final RouteConfiguration configuration;
2424
try {
2525
configuration = buildConfiguration(io.Directory.current);
26-
} catch (error) {
26+
} on Exception catch (error) {
2727
context.logger.err('$error');
2828
return exit(1);
2929
}

bricks/dart_frog_prod_server/hooks/pre_gen.dart

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -48,7 +48,7 @@ Future<void> preGen(
4848
final RouteConfiguration configuration;
4949
try {
5050
configuration = buildConfiguration(projectDirectory);
51-
} catch (error) {
51+
} on Exception catch (error) {
5252
context.logger.err('$error');
5353
return exit(1);
5454
}

0 commit comments

Comments
 (0)