Skip to content

Commit

Permalink
Emit exit code 69 for TlsExceptions
Browse files Browse the repository at this point in the history
Closes #1729
  • Loading branch information
nex3 committed Oct 23, 2017
1 parent be28505 commit 70caca2
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
1 change: 1 addition & 0 deletions lib/src/command_runner.dart
Original file line number Diff line number Diff line change
Expand Up @@ -235,6 +235,7 @@ and include the logs in an issue on https://github.com/dart-lang/pub/issues/new
if (exception is HttpException ||
exception is http.ClientException ||
exception is SocketException ||
exception is TlsException ||
exception is PubHttpException ||
exception is DependencyNotFoundException) {
return exit_codes.UNAVAILABLE;
Expand Down
2 changes: 1 addition & 1 deletion lib/src/source/hosted.dart
Original file line number Diff line number Diff line change
Expand Up @@ -329,7 +329,7 @@ class BoundHostedSource extends CachedSource {
stackTrace);
}

if (error is io.SocketException) {
if (error is io.SocketException || error is io.TlsException) {
fail("Got socket error trying to find package $package at $url.", error,
stackTrace);
}
Expand Down

0 comments on commit 70caca2

Please sign in to comment.