Skip to content
This repository was archived by the owner on Jan 10, 2022. It is now read-only.

Commit 3d55dad

Browse files
committed
[hello] Add SDK constraint to pubspec.yaml
1 parent d4a09e3 commit 3d55dad

File tree

3 files changed

+6
-2
lines changed

3 files changed

+6
-2
lines changed

hello/.gitignore

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1 +1,3 @@
1+
.dart_tool
2+
pubspec.lock
13
Dockerfile

hello/bin/server.dart

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ void main() {
1010
final port = int.tryParse(Platform.environment['PORT'] ?? '8080');
1111
final webFiles = new VirtualDirectory('web');
1212

13-
runZoned(() {
13+
runZonedGuarded(() {
1414
HttpServer.bind('0.0.0.0', port).then((server) {
1515
server.listen((request) {
1616
if (request.uri.path == '/') {
@@ -28,7 +28,7 @@ void main() {
2828
}
2929
});
3030
});
31-
}, onError: (e, stackTrace) {
31+
}, (e, stackTrace) {
3232
print('Error processing request $e\n$stackTrace');
3333
});
3434
}

hello/pubspec.yaml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,3 +3,5 @@ description: Hello
33
dependencies:
44
http_server: any
55
pedantic: any
6+
environment:
7+
sdk: '>=2.10.0 <3.0.0'

0 commit comments

Comments
 (0)