File tree Expand file tree Collapse file tree 2 files changed +8
-6
lines changed Expand file tree Collapse file tree 2 files changed +8
-6
lines changed Original file line number Diff line number Diff line change @@ -235,6 +235,7 @@ and include the logs in an issue on https://github.com/dart-lang/pub/issues/new
235
235
if (exception is HttpException ||
236
236
exception is http.ClientException ||
237
237
exception is SocketException ||
238
+ exception is TlsException ||
238
239
exception is PubHttpException ||
239
240
exception is DependencyNotFoundException ) {
240
241
return exit_codes.UNAVAILABLE ;
Original file line number Diff line number Diff line change @@ -327,15 +327,16 @@ class BoundHostedSource extends CachedSource {
327
327
"to find package $package at $url ." ,
328
328
error,
329
329
stackTrace);
330
- }
331
-
332
- if (error is io.SocketException ) {
330
+ } else if (error is io.SocketException ) {
333
331
fail ("Got socket error trying to find package $package at $url ." , error,
334
332
stackTrace);
333
+ } else if (error is io.TlsException ) {
334
+ fail ("Got TLS error trying to find package $package at $url ." , error,
335
+ stackTrace);
336
+ } else {
337
+ // Otherwise re-throw the original exception.
338
+ throw error;
335
339
}
336
-
337
- // Otherwise re-throw the original exception.
338
- throw error;
339
340
}
340
341
341
342
/// Given a URL, returns a "normalized" string to be used as a directory name
You can’t perform that action at this time.
0 commit comments